diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-09-14 00:55:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-14 00:55:32 -0700 |
commit | 611d8139e4e0a78797a0821074fc94a4f8d74b7b (patch) | |
tree | 992e3bebcce5faf2dc81e3dd7b6df84ade69b477 /templates/hooks--update | |
parent | git.el: Allow the add and remove commands to be applied to ignored files. (diff) | |
parent | git-format-patch --in-reply-to: accept <message@id> with angle brackets (diff) | |
download | tgif-611d8139e4e0a78797a0821074fc94a4f8d74b7b.tar.xz |
Merge branch 'maint'
* maint:
git-format-patch --in-reply-to: accept <message@id> with angle brackets
git-add -u: do not barf on type changes
Remove duplicate note about removing commits with git-filter-branch
git-clone: improve error message if curl program is missing or not executable
hooks--update: Explicitly check for all zeros for a deleted ref.
Diffstat (limited to 'templates/hooks--update')
-rw-r--r-- | templates/hooks--update | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--update b/templates/hooks--update index 9d3795c6d0..d8c76264be 100644 --- a/templates/hooks--update +++ b/templates/hooks--update @@ -42,7 +42,7 @@ fi # --- Check types # if $newrev is 0000...0000, it's a commit to delete a branch -if [ -z "${newrev##0*}" ]; then +if [ "$newrev" = "0000000000000000000000000000000000000000" ]; then newrev_type=commit else newrev_type=$(git-cat-file -t $newrev) |