diff options
Diffstat (limited to 'src/posix.c')
-rw-r--r-- | src/posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c index 8c19588ee..916aad726 100644 --- a/src/posix.c +++ b/src/posix.c @@ -35,7 +35,8 @@ int p_getcwd(char *buffer_out, size_t size) git_path_mkposix(buffer_out); - git_path_join(buffer_out, buffer_out, ""); //Ensure the path ends with a trailing slash + git_path_string_to_dir(buffer_out, size); //Ensure the path ends with a trailing slash + return GIT_SUCCESS; } |