Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: prepare for repositories with packed refs.
[gitweb.git]
/
builtin-update-ref.c
diff --git
a/builtin-update-ref.c
b/builtin-update-ref.c
index 5bd71825fdc48392952faf170efe98c072c7e482..90a3da53ad003a82781e6d4acfc7815c8f15f24f 100644
(file)
--- a/
builtin-update-ref.c
+++ b/
builtin-update-ref.c
@@
-44,7
+44,7
@@
int cmd_update_ref(int argc, const char **argv, const char *prefix)
if (get_sha1(value, sha1))
die("%s: not a valid SHA1", value);
-
memset(oldsha1, 0, 20
);
+
hashclr(oldsha1
);
if (oldval && get_sha1(oldval, oldsha1))
die("%s: not a valid old SHA1", oldval);