Revision 33a798c880f9a8bed1fe95531349e5e5ef1e0cd2 authored by Junio C Hamano on 06 August 2007, 07:20:06 UTC, committed by Junio C Hamano on 06 August 2007, 07:25:35 UTC
If you have a working tree _file_ "foo", attempt to refer to a branch "foo/bar" without -- to disambiguate, like this: $ git log foo/bar tried to make sure that foo/bar cannot be naming a working tree file "foo/bar" (in which case we would say "which one do you want? A rev or a working tree file? clarify with -- please"). We run lstat("foo/bar") to check that. If it does not succeed, there is no ambiguity. That is good. But we also checked the error status for the lstat() and expected it to fail with ENOENT. In this particular case, however, it fails with ENOTDIR. That should be treated as "expected error" as well. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4e0b2bb
File | Mode | Size |
---|---|---|
hstrerror.c | -rw-r--r-- | 513 bytes |
inet_ntop.c | -rw-r--r-- | 5.0 KB |
inet_pton.c | -rw-r--r-- | 6.9 KB |
mmap.c | -rw-r--r-- | 748 bytes |
pread.c | -rw-r--r-- | 433 bytes |
setenv.c | -rw-r--r-- | 786 bytes |
strcasestr.c | -rw-r--r-- | 431 bytes |
strlcpy.c | -rw-r--r-- | 247 bytes |
strtoumax.c | -rw-r--r-- | 217 bytes |
unsetenv.c | -rw-r--r-- | 558 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...