author | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 Nov 2007 07:25:19 +0000 (23:25 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 Nov 2007 07:25:19 +0000 (23:25 -0800) | ||
commit | 7a3db75beee75c4e1b5fdae7504bc2ba05c58b14 | |
tree | 774efa464bf2e1663af1512db633c7de756ca74e | tree | snapshot |
parent | 958e67c0a8b7f12462ad1828ac3b3178181ea4e9 | commit | diff |
Fix sample pre-commit hook
If the worktree happened to have a file called HEAD, "diff-index --cached HEAD"
would complain about the ambiguity between revision and path. Avoid it by
using an explicit "--" for disambiguation.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If the worktree happened to have a file called HEAD, "diff-index --cached HEAD"
would complain about the ambiguity between revision and path. Avoid it by
using an explicit "--" for disambiguation.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
templates/hooks--pre-commit | diff | blob | history |