]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
Update git to v1.7.9.7
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index 11edd81cbb69d5b3eab7fe0cdc0c720fea05d951..d6153154211ef03883ab0166aa61cf1327dba309 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -450,7 +450,7 @@ static char *guess_defbranch(const char *repo_path)
        const char *ref;
        unsigned char sha1[20];
 
-       ref = resolve_ref("HEAD", sha1, 0, NULL);
+       ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL);
        if (!ref || prefixcmp(ref, "refs/heads/"))
                return "master";
        return xstrdup(ref + 11);