]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-fetch--tool.c
send-email: add transfer encoding header with content-type
[git.git] / builtin-fetch--tool.c
index ed4d5de5d5e6d0bef5b29f3d21a3e58ff7778c8b..db133348a8f7f52a7f246aeb7f61a6cacbd8e3cb 100644 (file)
@@ -1,3 +1,4 @@
+#include "builtin.h"
 #include "cache.h"
 #include "refs.h"
 #include "commit.h"
@@ -147,7 +148,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;