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>
This commit is contained in:
John Keeping 2013-03-02 12:32:14 +00:00 committed by Jason A. Donenfeld
parent 87369611a8
commit 10628b0e52
2 changed files with 2 additions and 2 deletions

2
cgit.c
View File

@ -450,7 +450,7 @@ static char *guess_defbranch(const char *repo_path)
const char *ref; const char *ref;
unsigned char sha1[20]; 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/")) if (!ref || prefixcmp(ref, "refs/heads/"))
return "master"; return "master";
return xstrdup(ref + 11); return xstrdup(ref + 11);

2
git

@ -1 +1 @@
Subproject commit d9f5ef7a4a760d58f1f824f9fb8c12ef0371d3a9 Subproject commit d0f1ea6003d97e63110fa7d50bb07f546a909b6e