~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to templates/hooks--update

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
# --- Check types
44
44
# if $newrev is 0000...0000, it's a commit to delete a branch
45
 
if [ -z "${newrev##0*}" ]; then
 
45
if [ "$newrev" = "0000000000000000000000000000000000000000" ]; then
46
46
        newrev_type=commit
47
47
else
48
48
        newrev_type=$(git-cat-file -t $newrev)