On cygwin, when you try to create a symlink over a directory, you do not get EEXIST, but EACCES. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx> --- builtin-apply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-apply.c b/builtin-apply.c index 8f7cf44..d924ac3 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2034,7 +2034,7 @@ static void create_one_file(char *path, return; } - if (errno == EEXIST) { + if (errno == EEXIST || errno == EACCES) { /* We may be trying to create a file where a directory * used to be. */ -- 1.4.2.rc1.gaf40 - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html