From 2eb4edf5f269f60b188ff72d350ee321d1cbaf79 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Fri, 24 Aug 2012 10:48:48 -0700 Subject: Fix errors on Win32 with new repo init --- src/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileops.c') 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; -- cgit v1.2.1