Skip to content

Commit

Permalink
Merge pull request #708 from catenax-ng/chore/fix-commit-hook
Browse files Browse the repository at this point in the history
fix: commit hook should ignore remote-tracking merge requests too
  • Loading branch information
dsmf authored Jan 8, 2024
2 parents bd5835b + 6fe2d4b commit d22e9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/development/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi
commitTitle="$(cat $1 | head -n1)"

# ignore merge requests
if echo "$commitTitle" | grep -qE "^Merge branch '.*"; then
if echo "$commitTitle" | grep -qE "^Merge (remote-tracking )?branch '.*"; then
echo "Commit hook: ignoring branch merge"
exit 0
fi
Expand Down

0 comments on commit d22e9c2

Please sign in to comment.