author | Dmitry Potapov <dpotapov@gmail.com> | |
Wed, 25 Jun 2008 08:26:55 +0000 (12:26 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Jun 2008 19:44:32 +0000 (12:44 -0700) | ||
commit | df79b9fdb863648fe27771ac373adb665cab066e | |
tree | e19b4c95bd41f9f37acc6d33a41ff3a44866748c | tree | snapshot |
parent | 2beebd22f4af8788eaf19d811de03191ae6f7c42 | commit | diff |
fix update-hook-example to work with packed tag references
The update-hook-example used 'test -f' to check the tag present, which
does not work if the checked reference is packed. This check has been
changed to use 'git rev-parse $tag' instead.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The update-hook-example used 'test -f' to check the tag present, which
does not work if the checked reference is packed. This check has been
changed to use 'git rev-parse $tag' instead.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/howto/update-hook-example.txt | diff | blob | history |