summaryrefslogtreecommitdiff
path: root/src/filebuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filebuf.c b/src/filebuf.c
index 1a3fe6d9b..199418032 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -278,7 +278,7 @@ int git_filebuf_commit(git_filebuf *file, mode_t mode)
goto cleanup;
}
- error = git_futils_mv_atomic(file->path_lock, file->path_original);
+ error = p_rename(file->path_lock, file->path_original);
cleanup:
git_filebuf_cleanup(file);