Skip to content
Snippets Groups Projects

Fix for triggering git hooks configured through Project settings.

Closed Rubén Dávila requested to merge issue_587 into master
  • We should skip hooks only for new branch.
  • The spec was using a wrong rev as the blank rev.

REF: #587 (closed)

cc/ @jameslopez

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
401 401 project.git_hook.update(commit_message_regex: "Change some files")
402 402
403 403 # push to new branch, so use a blank old rev and new ref
  • @rdavila actually what is wrong here is the comment - we should remove it. In the previous test, we use a new branch, so the comment made sense, but in this case I think we are testing old commits, like the case when there's a merge... So the comment got copied & pasted here but shouldn't be on this particular test...

    Edited by James Lopez
  • @rdavila if this is quite tricky I'll be happy to help or take over, so feel free to bug me on slack

  • Author Maintainer

    @jameslopez thanks for reviewing, I'll leave it for you since you have worked on it and have a better understanding of the problem. Just a small tip: try to do some manual testing because it was failling for single commits too.

  • Rubén Dávila Status changed to closed

    Status changed to closed

  • mentioned in commit 7d286ac6

  • Mentioned in commit 7d286ac6

  • Please register or sign in to reply
    Loading