| -rw-r--r-- | Makefile | 2 | ||||
| m--------- | git | 0 | ||||
| -rw-r--r-- | ui-clone.c | 12 |
3 files changed, 4 insertions, 10 deletions
@@ -14,7 +14,7 @@ htmldir = $(docdir) pdfdir = $(docdir) mandir = $(prefix)/share/man SHA1_HEADER = <openssl/sha.h> -GIT_VER = 2.49.0 +GIT_VER = 2.48.1 GIT_URL = https://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.xz INSTALL = install COPYTREE = cp -r diff --git a/git b/git -Subproject 683c54c999c301c2cd6f715c411407c413b1d84 +Subproject f93ff170b93a1782659637824b25923245ac9dd @@ -95,7 +95,7 @@ void cgit_clone_info(void) void cgit_clone_objects(void) { - char *p, *path; + char *p; if (!ctx.qry.path) goto err; @@ -116,9 +116,7 @@ void cgit_clone_objects(void) goto err; } - path = repo_git_path(the_repository, "objects/%s", ctx.qry.path); - send_file(path); - free(path); + send_file(git_path("objects/%s", ctx.qry.path)); return; err: @@ -127,9 +125,5 @@ err: void cgit_clone_head(void) { - char *path; - - path = repo_git_path(the_repository, "HEAD"); - send_file(path); - free(path); + send_file(git_path("%s", "HEAD")); } |