Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
clear_ref_array(): rename from free_ref_array()
[gitweb.git]
/
builtin
/
fetch.c
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index 91731b909aeb22bf8d4e366b8b92281ac0f9ac0c..494a7f9976f870a28dbbbcb4196954a827f6bfdb 100644
(file)
--- a/
builtin/fetch.c
+++ b/
builtin/fetch.c
@@
-436,8
+436,7
@@
static int store_updated_refs(const char *raw_url, const char *remote_name,
}
note[note_len] = '\0';
fprintf(fp, "%s\t%s\t%s",
- sha1_to_hex(commit ? commit->object.sha1 :
- rm->old_sha1),
+ sha1_to_hex(rm->old_sha1),
rm->merge ? "" : "not-for-merge",
note);
for (i = 0; i < url_len; ++i)