diff options
author | Russell Belfer <rb@github.com> | 2012-08-24 10:48:48 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-08-24 10:48:48 -0700 |
commit | 2eb4edf5f269f60b188ff72d350ee321d1cbaf79 (patch) | |
tree | 8f0217382b94730cb7692653a313c526020bfe6f /src/fileops.c | |
parent | c920e162325d0f9acba46a19c4619e6bfa17707e (diff) | |
download | libgit2-2eb4edf5f269f60b188ff72d350ee321d1cbaf79.tar.gz |
Fix errors on Win32 with new repo init
Diffstat (limited to 'src/fileops.c')
-rw-r--r-- | src/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 5df312360..eecfc2847 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -604,7 +604,7 @@ static int _cp_r_callback(void *ref, git_buf *from) return -1; if (p_lstat(info->to.ptr, &to_st) < 0) { - if (errno != ENOENT) { + if (errno != ENOENT && errno != ENOTDIR) { giterr_set(GITERR_OS, "Could not access %s while copying files", info->to.ptr); return -1; |