Paul Tan pyoka...@gmail.com writes:
+test_expect_success 'am with applypatch-msg hook' '
+ test_when_finished rm -f .git/hooks/applypatch-msg
+ rm -fr .git/rebase-apply
+ git reset --hard
+ git checkout first
+ mkdir -p .git/hooks
+ cat
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am
will invoke the applypatch-msg hooks just after extracting the patch
message. If the applypatch-msg hook exits with a non-zero status, git-am
abort before even applying the patch to the index.
Add tests for this hook.
Cc:
2 matches
Mail list logo