X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Frepositories%2Fbare.git%2Fhooks%2Fprepare-commit-msg.sample;h=f093a02ec49918ab15e920f455979fd5ed732cf6;hb=af2c5a6d465a126c3158967289bf8fb57d4010de;hp=365242499dcf0ee35c26ccb2917724d6e559be69;hpb=4805c46557b15ec3c790e64048c88f35809389c7;p=catagits%2FGitalist.git diff --git a/t/lib/repositories/bare.git/hooks/prepare-commit-msg.sample b/t/lib/repositories/bare.git/hooks/prepare-commit-msg.sample index 3652424..f093a02 100755 --- a/t/lib/repositories/bare.git/hooks/prepare-commit-msg.sample +++ b/t/lib/repositories/bare.git/hooks/prepare-commit-msg.sample @@ -1,7 +1,7 @@ #!/bin/sh # # An example hook script to prepare the commit log message. -# Called by git-commit with the name of the file that has the +# Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, @@ -22,10 +22,10 @@ case "$2,$3" in merge,) - perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; + /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; # ,|template,) -# perl -i.bak -pe ' +# /usr/bin/perl -i.bak -pe ' # print "\n" . `git diff --cached --name-status -r` # if /^#/ && $first++ == 0' "$1" ;;