diff options
Diffstat (limited to 'src/mailmap.c')
-rw-r--r-- | src/mailmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailmap.c b/src/mailmap.c index 38ae01645..4336fe3e5 100644 --- a/src/mailmap.c +++ b/src/mailmap.c @@ -9,13 +9,14 @@ #include "common.h" #include "config.h" -#include "path.h" +#include "fs_path.h" #include "repository.h" #include "signature.h" #include "git2/config.h" #include "git2/revparse.h" #include "blob.h" #include "parse.h" +#include "path.h" #define MM_FILE ".mailmap" #define MM_FILE_CONFIG "mailmap.file" @@ -327,11 +328,11 @@ static int mailmap_add_file_ondisk( git_str content = GIT_STR_INIT; int error; - error = git_path_join_unrooted(&fullpath, path, base, NULL); + error = git_fs_path_join_unrooted(&fullpath, path, base, NULL); if (error < 0) goto cleanup; - error = git_path_validate_workdir_buf(repo, &fullpath); + error = git_path_validate_str_length(repo, &fullpath); if (error < 0) goto cleanup; |