summaryrefslogtreecommitdiff
path: root/src/filebuf.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-11-07 19:34:24 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-11-07 20:34:27 +0100
commit0c49ec2d3b5bfc32d69d189b7dc69cc26beb6a92 (patch)
tree86fe3204cfbe9b2a09fcd4d22b1ddf24f51e7269 /src/filebuf.c
parent38068dc1d3cf4a0f0dc2ce8c488a1de4621c04b5 (diff)
downloadlibgit2-0c49ec2d3b5bfc32d69d189b7dc69cc26beb6a92.tar.gz
Implement p_rename
Move the callers of git_futils_mv_atomic to use p_rename. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
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);