aboutsummaryrefslogtreecommitdiffstats
path: root/bisect.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-02-07 12:03:32 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-07 09:59:22 -0800
commitbba59f58a4eeda6fafaa3d41e14f3d00a179923f (patch)
tree51f269e242c52072952c7c35b7ddd2e3df912b28 /bisect.c
parent7f17900b5ba2569d9d07352be51ce90a249a0b46 (diff)
downloadgit-bba59f58a4eeda6fafaa3d41e14f3d00a179923f.tar.gz
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 'bisect.c')
-rw-r--r--bisect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index 7a3c77c6d8..269a98bf97 100644
--- a/bisect.c
+++ b/bisect.c
@@ -930,7 +930,7 @@ static enum bisect_error check_good_are_ancestors_of_bad(struct repository *r,
if (!current_bad_oid)
return error(_("a %s revision is needed"), term_bad);
- filename = git_pathdup("BISECT_ANCESTORS_OK");
+ filename = repo_git_path(the_repository, "BISECT_ANCESTORS_OK");
/* Check if file BISECT_ANCESTORS_OK exists. */
if (!stat(filename, &st) && S_ISREG(st.st_mode))