aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorGravatar John Keeping <john@keeping.me.uk>2013-03-02 21:32:14 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-03-03 00:38:03 (JST)
commit10628b0e52f860f8c95c476f61a98a31b79ce776 (patch)
treecfd776471cae4c1d18eb13703c796fe917ff37e5 /cgit.c
parent87369611a8cc253c53408375960918eebf50d1cc (diff)
downloadcgit-10628b0e52f860f8c95c476f61a98a31b79ce776.zip
cgit-10628b0e52f860f8c95c476f61a98a31b79ce776.tar.gz
Update git to v1.7.9.7
resolve_ref() is renamed to resolve_ref_unsafe(). CGit's usage is safe. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 11edd81..d615315 100644
--- a/cgit.c
+++ b/cgit.c
@@ -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);