summaryrefslogtreecommitdiff
path: root/src/filebuf.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-03 19:53:17 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-03 20:23:51 +0200
commit19a30a3f6e15da184fc449315314af666f2082bf (patch)
treec9263fef3e6fea67f07405057777057684f9b6a0 /src/filebuf.c
parent6b02b215169d493abe35d8036c3cf687521e08a5 (diff)
downloadlibgit2-19a30a3f6e15da184fc449315314af666f2082bf.tar.gz
Add new move function, `gitfo_mv_force`
Forces a move by creating the folder for the destination file, if it doesn't exist. Signed-off-by: Vicent Marti <tanoku@gmail.com>
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 a71c57a47..73f0a70f4 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -192,7 +192,7 @@ int git_filebuf_commit(git_filebuf *file)
gitfo_close(file->fd);
file->fd = -1;
- error = gitfo_move_file(file->path_lock, file->path_original);
+ error = gitfo_mv(file->path_lock, file->path_original);
cleanup:
git_filebuf_cleanup(file);