summaryrefslogtreecommitdiff
path: root/ui-clone.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-08-24 04:58:30 +0000
committerFreya Murphy <freya@freyacat.org>2025-08-24 05:00:41 +0000
commit8335a28b13084a672d804a2f6701e3178785be0c (patch)
tree2393b79db475b988b2418e761a1b9dbdde4d504f /ui-clone.c
parentadd more meta tags to the header (diff)
downloadcgit-8335a28b13084a672d804a2f6701e3178785be0c.tar.gz
cgit-8335a28b13084a672d804a2f6701e3178785be0c.tar.bz2
cgit-8335a28b13084a672d804a2f6701e3178785be0c.zip
git: update to v2.51.0
Diffstat (limited to 'ui-clone.c')
-rw-r--r--ui-clone.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui-clone.c b/ui-clone.c
index df196a0..97a6d63 100644
--- a/ui-clone.c
+++ b/ui-clone.c
@@ -14,9 +14,8 @@
#include "html.h"
#include "ui-shared.h"
#include "packfile.h"
-#include "object-store.h"
-static int print_ref_info(const char *refname, const struct object_id *oid,
+static int print_ref_info(const char *refname, const char *referent, const struct object_id *oid,
int flags, void *cb_data)
{
struct object *obj;
@@ -116,7 +115,7 @@ void cgit_clone_objects(void)
goto err;
}
- send_file(git_path("objects/%s", ctx.qry.path));
+ send_file(repo_git_path(the_repository, "objects/%s", ctx.qry.path));
return;
err:
@@ -125,5 +124,5 @@ err:
void cgit_clone_head(void)
{
- send_file(git_path("%s", "HEAD"));
+ send_file(repo_git_path(the_repository, "%s", "HEAD"));
}