diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-02-07 12:03:32 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-07 09:59:22 -0800 |
commit | bba59f58a4eeda6fafaa3d41e14f3d00a179923f (patch) | |
tree | 51f269e242c52072952c7c35b7ddd2e3df912b28 /http-backend.c | |
parent | 7f17900b5ba2569d9d07352be51ce90a249a0b46 (diff) |
path: drop `git_pathdup()` in favor of `repo_git_path()`
Remove `git_pathdup()` in favor of `repo_git_path()`. The latter does
essentially the same, with the only exception that it does not rely on
`the_repository` but takes the repo as separate parameter.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-backend.c')
-rw-r--r-- | http-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-backend.c b/http-backend.c index 33cf378282..50b2858fad 100644 --- a/http-backend.c +++ b/http-backend.c @@ -183,7 +183,7 @@ static void send_strbuf(struct strbuf *hdr, static void send_local_file(struct strbuf *hdr, const char *the_type, const char *name) { - char *p = git_pathdup("%s", name); + char *p = repo_git_path(the_repository, "%s", name); size_t buf_alloc = 8192; char *buf = xmalloc(buf_alloc); int fd; |