diff options
Diffstat (limited to 'fast-import.c')
-rw-r--r-- | fast-import.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fast-import.c b/fast-import.c index 30181304d6..1b5092378a 100644 --- a/fast-import.c +++ b/fast-import.c @@ -3112,12 +3112,9 @@ static void parse_progress(void) static char* make_fast_import_path(const char *path) { - struct strbuf abs_path = STRBUF_INIT; - if (!relative_marks_paths || is_absolute_path(path)) return xstrdup(path); - strbuf_addf(&abs_path, "%s/info/fast-import/%s", get_git_dir(), path); - return strbuf_detach(&abs_path, NULL); + return xstrdup(git_path("info/fast-import/%s", path)); } static void option_import_marks(const char *marks, |