replace xstrdup(git_path(...)) with git_pathdup(...)
[gitweb.git] / fast-import.c
index 4d5a7f58d011545061decbc70e824274091db3e5..d2ef8a87295482059d2a8af7c69b3553817b5a07 100644 (file)
@@ -3203,7 +3203,7 @@ static char* make_fast_import_path(const char *path)
 {
        if (!relative_marks_paths || is_absolute_path(path))
                return xstrdup(path);
-       return xstrdup(git_path("info/fast-import/%s", path));
+       return git_pathdup("info/fast-import/%s", path);
 }
 
 static void option_import_marks(const char *marks,