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 /builtin/clone.c | |
| parent | path: drop unused `strbuf_git_path()` function (diff) | |
| download | git-bba59f58a4eeda6fafaa3d41e14f3d00a179923f.tar.gz git-bba59f58a4eeda6fafaa3d41e14f3d00a179923f.zip | |
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 'builtin/clone.c')
| -rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index fd001d800c..5ae6ee9db9 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -938,7 +938,7 @@ static void write_refspec_config(const char *src_ref_prefix, static void dissociate_from_references(void) { - char *alternates = git_pathdup("objects/info/alternates"); + char *alternates = repo_git_path(the_repository, "objects/info/alternates"); if (!access(alternates, F_OK)) { struct child_process cmd = CHILD_PROCESS_INIT; |
