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>
This commit is contained in:
committed by
Junio C Hamano
parent
7f17900b5b
commit
bba59f58a4
@@ -717,7 +717,7 @@ static void read_info_alternates(struct repository *r,
|
||||
void add_to_alternates_file(const char *reference)
|
||||
{
|
||||
struct lock_file lock = LOCK_INIT;
|
||||
char *alts = git_pathdup("objects/info/alternates");
|
||||
char *alts = repo_git_path(the_repository, "objects/info/alternates");
|
||||
FILE *in, *out;
|
||||
int found = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user