Revision 838d6a928fc3aef3827d9a45e6aac044fea7451e authored by David Turner on 18 May 2015, 18:08:46 UTC, committed by Junio C Hamano on 18 May 2015, 21:04:15 UTC
Even though "git clean" takes pathspec to limit the part of the
working tree to be cleaned, it checked the paths it encounters
during its directory traversal with lstat(2), before checking if
the path is within the pathspec.

Ignore paths outside pathspec and proceed without checking with
lstat(2).  Even if such a path is unreadable due to e.g. EPERM,
"git clean" should not care.

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 282616c
History
File Mode Size
Git
.gitignore -rw-r--r-- 79 bytes
Git.pm -rw-r--r-- 43.7 KB
Makefile -rw-r--r-- 2.2 KB
Makefile.PL -rw-r--r-- 1.6 KB
private-Error.pm -rw-r--r-- 18.6 KB

back to top