Do not try to remove directories when removing old links
authorSebastian Schuberth <sschuberth@gmail.com>
Tue, 27 Oct 2009 11:23:33 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 06:45:41 +0000 (23:45 -0700)
commitade2ca0ca9f8335be300d5538e1ca9cb3594ae64
tree8cde05a944f8e2e53efa88ec0a01385dd6c0ab10
parent6c0efa2ac07f275c1edd11ae6646a647d7f19f36
Do not try to remove directories when removing old links

When building Git with MSVC on Windows, directories named after the Git alias
are created for the output files, e.g. there is a "git-merge-index" directory
next to the "git-merge-index.exe" executable in the build root. Previously,
"make all" just checked if "git-merge-index" and "git-merge-index.exe" are the
same file, and if not, tried to remove "git-merge-index". This fails in the
case of "git-merge-index" being a directory, which is why this is checked now.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile