X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Ffetch.c;h=33ad3aad2c99116a237d7e7d11dab22fcf4295b1;hb=9049816140e75d3f7b15264e97e042f5ab0bf392;hp=8761a33b491ae8a9437d78247ef0808c0686486e;hpb=f1f509cc4504ebe9e2922c7bc61794183e3d441a;p=git.git diff --git a/builtin/fetch.c b/builtin/fetch.c index 8761a33b4..33ad3aad2 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -443,8 +443,7 @@ static int store_updated_refs(const char *raw_url, const char *remote_name, 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)