Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Added --branch-log to option to fast-import.
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 17cd0cef3c9819d70083554f99d8f09391171db1..e70ef0ae0fe58671a35b71a55fbf81425ee84581 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-29,7
+29,7
@@
const char *resolve_ref(const char *path, unsigned char *sha1, int reading)
if (lstat(path, &st) < 0) {
if (reading || errno != ENOENT)
return NULL;
-
memset(sha1, 0, 20
);
+
hashclr(sha1
);
return path;
}