Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2025-03-12 19:13:02 +0300
committerChristian Hesse <mail@eworm.de>2025-03-15 15:03:23 +0300
commit994d3fe1a8fa56d5a1dd36aae62c788169160c3a (patch)
tree523e315736c5faca304468d98b1cf05d48f197de /ui-clone.c
parentce4a66b9d7a3f393708fa7c9725b077b3ded71d0 (diff)
git: update to v2.49.0
Update to git version v2.49.0, this requires changes for these upstream commits: * 88dd321cfedc6ee190dfafe4670a83ea33cdf4a3 path: drop `git_path()` in favor of `repo_git_path()` Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-clone.c')
-rw-r--r--ui-clone.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ui-clone.c b/ui-clone.c
index 31989a5..2ed3e1c 100644
--- a/ui-clone.c
+++ b/ui-clone.c
@@ -95,7 +95,7 @@ void cgit_clone_info(void)
void cgit_clone_objects(void)
{
- char *p;
+ char *p, *path;
if (!ctx.qry.path)
goto err;
@@ -116,7 +116,9 @@ void cgit_clone_objects(void)
goto err;
}
- send_file(git_path("objects/%s", ctx.qry.path));
+ path = repo_git_path(the_repository, "objects/%s", ctx.qry.path);
+ send_file(path);
+ free(path);
return;
err:
@@ -125,5 +127,9 @@ err:
void cgit_clone_head(void)
{
- send_file(git_path("%s", "HEAD"));
+ char *path;
+
+ path = repo_git_path(the_repository, "HEAD");
+ send_file(path);
+ free(path);
}