git: update to v2.2.1
Update to git version v2.2.1, including API changes. Signed-off-by: Christian Hesse <mail@eworm.de>
Tá an tiomantas seo le fáil i:

tiomanta ag
Jason A. Donenfeld

tuismitheoir
10c5680efb
tiomantas
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);
|
||||
|
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir