diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-18 01:29:36 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-18 01:46:57 -0700 |
commit | e8f990b4e4b56f214138cc475c19e5a253e9148e (patch) | |
tree | 7586c540fd88618d9ed9b5b7e6927a66cd887155 /fetch-clone.c | |
parent | Remove old "git-add.sh" remnants (diff) | |
download | tgif-e8f990b4e4b56f214138cc475c19e5a253e9148e.tar.xz |
builtin-add: fix unmatched pathspec warnings.
"git add Documentation/" when Documentation directory exists
does not barf (as it should not), but "git add ." barfed when it
did not add anything. This was because we checked for the path
prefix ("Documentation/" in the former case, and an empty string
in the latter case) for existence, and lstat("", &st) would say
"Huh?".
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-clone.c')
0 files changed, 0 insertions, 0 deletions