diff options
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -450,7 +450,7 @@ static char *guess_defbranch(const char *repo_path) | |||
450 | const char *ref; | 450 | const char *ref; |
451 | unsigned char sha1[20]; | 451 | unsigned char sha1[20]; |
452 | 452 | ||
453 | ref = resolve_ref("HEAD", sha1, 0, NULL); | 453 | ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL); |
454 | if (!ref || prefixcmp(ref, "refs/heads/")) | 454 | if (!ref || prefixcmp(ref, "refs/heads/")) |
455 | return "master"; | 455 | return "master"; |
456 | return xstrdup(ref + 11); | 456 | return xstrdup(ref + 11); |