2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 06:15:08 +00:00

git: update to v2.2.1

Update to git version v2.2.1, including API changes.

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse
2014-12-19 00:28:34 -07:00
committed by Jason A. Donenfeld
parent 10c5680efb
commit 17838ec630
5 changed files with 9 additions and 8 deletions

2
cgit.c
View File

@@ -457,7 +457,7 @@ static char *guess_defbranch(void)
const char *ref;
unsigned char sha1[20];
ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL);
ref = resolve_ref_unsafe("HEAD", 0, sha1, NULL);
if (!ref || !starts_with(ref, "refs/heads/"))
return "master";
return xstrdup(ref + 11);