diff options
author | Christian Hesse | 2014-12-19 00:28:34 -0700 |
---|---|---|
committer | Jason A. Donenfeld | 2014-12-23 18:53:03 -0700 |
commit | 17838ec6304198811df97402f11c185f8f0e10bd (patch) | |
tree | bf462dcdb2b974d45c72b8f4fb559dfde1b51027 /cgit.c | |
parent | 10c5680efb02b534108b174c0967d08ae3e46927 (diff) | |
download | cgit-17838ec6304198811df97402f11c185f8f0e10bd.tar.gz cgit-17838ec6304198811df97402f11c185f8f0e10bd.tar.bz2 cgit-17838ec6304198811df97402f11c185f8f0e10bd.zip |
git: update to v2.2.1
Update to git version v2.2.1, including API changes.
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -457,7 +457,7 @@ static char *guess_defbranch(void) | |||
457 | const char *ref; | 457 | const char *ref; |
458 | unsigned char sha1[20]; | 458 | unsigned char sha1[20]; |
459 | 459 | ||
460 | ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL); | 460 | ref = resolve_ref_unsafe("HEAD", 0, sha1, NULL); |
461 | if (!ref || !starts_with(ref, "refs/heads/")) | 461 | if (!ref || !starts_with(ref, "refs/heads/")) |
462 | return "master"; | 462 | return "master"; |
463 | return xstrdup(ref + 11); | 463 | return xstrdup(ref + 11); |