t5601: add more test cases for IPV6
[gitweb.git] / builtin / log.c
index 68d5d30035442a1d12cf0fbf8a10dca0df2711be..734aab3a73185964d18c82fe5eb31008bbc409b7 100644 (file)
@@ -1400,7 +1400,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
                if (check_head) {
                        unsigned char sha1[20];
                        const char *ref, *v;
-                       ref = resolve_ref_unsafe("HEAD", sha1, 1, NULL);
+                       ref = resolve_ref_unsafe("HEAD", RESOLVE_REF_READING,
+                                                sha1, NULL);
                        if (ref && skip_prefix(ref, "refs/heads/", &v))
                                branch_name = xstrdup(v);
                        else