Merge branch 'maint'
[gitweb.git] / builtin-fetch--tool.c
index 1e43d792216248c1abe3504c239ccd325f8d5ef1..e26817de219588e680340be8c0faf6b65417c465 100644 (file)
@@ -131,7 +131,7 @@ static int append_fetch_head(FILE *fp,
 
        if (get_sha1(head, sha1))
                return error("Not a valid object name: %s", head);
-       commit = lookup_commit_reference(sha1);
+       commit = lookup_commit_reference_gently(sha1, 1);
        if (!commit)
                not_for_merge = 1;