diff --git a/builtin/fetch.c b/builtin/fetch.c
index 8761a33b491ae8a9437d78247ef0808c0686486e..33ad3aad2c99116a237d7e7d11dab22fcf4295b1 100644 (file)
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
strbuf_addf(¬e, "'%s' of ", what);
}
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.buf);
for (i = 0; i < url_len; ++i)