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:
committed by
Jason A. Donenfeld
parent
10c5680efb
commit
17838ec630
2
cgit.c
2
cgit.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user