summaryrefslogtreecommitdiff
path: root/gitweb/test/file with spaces
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@linux-foundation.org>2007-04-19 22:48:21 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-04-19 22:48:21 -0700
commit851c603e9ca9d0954d89be1532d924a28ccb79fa (patch)
treed038d97634b0705a1836095c0a53eb926a2f77ae /gitweb/test/file with spaces
parentMerge branch 'maint' (diff)
downloadtgif-851c603e9ca9d0954d89be1532d924a28ccb79fa.tar.xz
Fix working directory errno handling when unlinking a directory
Alex Riesen noticed that the case where a file replaced a directory entry in the working tree was broken on cygwin. It turns out that the code made some Linux-specific assumptions, and also ignored errors entirely for the case where the entry was a symlink rather than a file. This cleans it up by separating out the common case into a function of its own, so that both regular files and symlinks can share it, and by making the error handling more obvious (and not depend on any Linux-specific behaviour). Acked-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb/test/file with spaces')
0 files changed, 0 insertions, 0 deletions