diff options
author | John Keeping <john@keeping.me.uk> | 2013-03-02 12:32:14 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-03-02 10:38:03 -0500 |
commit | 10628b0e52f860f8c95c476f61a98a31b79ce776 (patch) | |
tree | cfd776471cae4c1d18eb13703c796fe917ff37e5 | |
parent | 87369611a8cc253c53408375960918eebf50d1cc (diff) | |
download | cgit-10628b0e52f860f8c95c476f61a98a31b79ce776.tar.gz cgit-10628b0e52f860f8c95c476f61a98a31b79ce776.tar.bz2 cgit-10628b0e52f860f8c95c476f61a98a31b79ce776.zip |
Update git to v1.7.9.7
resolve_ref() is renamed to resolve_ref_unsafe(). CGit's usage is safe.
Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r-- | cgit.c | 2 | ||||
m--------- | git | 0 |
2 files changed, 1 insertions, 1 deletions
@@ -450,7 +450,7 @@ static char *guess_defbranch(const char *repo_path) const char *ref; unsigned char sha1[20]; - ref = resolve_ref("HEAD", sha1, 0, NULL); + ref = resolve_ref_unsafe("HEAD", sha1, 0, NULL); if (!ref || prefixcmp(ref, "refs/heads/")) return "master"; return xstrdup(ref + 11); diff --git a/git b/git -Subproject d9f5ef7a4a760d58f1f824f9fb8c12ef0371d3a +Subproject d0f1ea6003d97e63110fa7d50bb07f546a909b6 |