diff options
| author | Edward Thomson <ethomson@github.com> | 2017-02-17 16:48:03 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2017-02-28 13:29:01 +0000 |
| commit | 3ac05d11493d0573dbf725a19403dbf5e8d93b50 (patch) | |
| tree | df266808fd9a87c58b402c83eb1aa60f7bbc9376 /src/fileops.c | |
| parent | 2a5ad7d0f2c28337530855fae250f85123070fcb (diff) | |
| download | libgit2-3ac05d11493d0573dbf725a19403dbf5e8d93b50.tar.gz | |
win32: don't fsync parent directories on Windows
Windows doesn't support it.
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c index 881d1bed4..6565eb4bd 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -1127,6 +1127,10 @@ void git_futils_filestamp_set_from_stat( int git_futils_fsync_dir(const char *path) { +#ifdef GIT_WIN32 + GIT_UNUSED(path); + return 0; +#else int fd, error = -1; if ((fd = p_open(path, O_RDONLY)) < 0) { @@ -1139,6 +1143,7 @@ int git_futils_fsync_dir(const char *path) p_close(fd); return error; +#endif } int git_futils_fsync_parent(const char *path) |
