diff options
| author | Junio C Hamano <gitster@pobox.com> | 2011-03-09 15:54:04 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-03-09 15:54:04 -0800 |
| commit | 75618f1106b95defafca698d5cfdfd3dfb3a7e3c (patch) | |
| tree | 6d709e2f24f42211664b74c86892c963acb25e77 /symlinks.c | |
| parent | 3814888a634850a13afbf74146dbad6ded20bb91 (diff) | |
| parent | 1d718a5108f905e3c64f9fa791e67a52bd926457 (diff) | |
| download | git-75618f1106b95defafca698d5cfdfd3dfb3a7e3c.tar.xz | |
Merge branch 'js/checkout-untracked-symlink'
* js/checkout-untracked-symlink:
do not overwrite untracked symlinks
Demonstrate breakage: checkout overwrites untracked symlink with directory
Diffstat (limited to 'symlinks.c')
| -rw-r--r-- | symlinks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/symlinks.c b/symlinks.c index 3cacebd91a..034943bda0 100644 --- a/symlinks.c +++ b/symlinks.c @@ -223,7 +223,7 @@ int check_leading_path(const char *name, int len) int flags; int match_len = lstat_cache_matchlen(cache, name, len, &flags, FL_SYMLINK|FL_NOENT|FL_DIR, USE_ONLY_LSTAT); - if (flags & (FL_SYMLINK|FL_NOENT)) + if (flags & FL_NOENT) return 0; else if (flags & FL_DIR) return -1; |
