mirror of
https://git.zx2c4.com/cgit
synced 2025-08-02 00:54:36 +02: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:
parent
10c5680efb
commit
17838ec630
5 changed files with 9 additions and 8 deletions
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue