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:
Christian Hesse
2014-12-19 00:28:34 -07:00
tiomanta ag Jason A. Donenfeld
tuismitheoir 10c5680efb
tiomantas 17838ec630
D'athraigh 5 comhad le 9 breiseanna agus 8 scriosta

2
cgit.c
Féach ar an gComhad

@ -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);