aboutsummaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/read-cache.c b/read-cache.c
index f458f5045..b8b6d11db 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -277,9 +277,9 @@ int base_name_compare(const char *name1, int len1, int mode1,
return cmp;
c1 = name1[len];
c2 = name2[len];
- if (!c1 && (S_ISDIR(mode1) || S_ISDIRLNK(mode1)))
+ if (!c1 && S_ISDIR(mode1))
c1 = '/';
- if (!c2 && (S_ISDIR(mode2) || S_ISDIRLNK(mode2)))
+ if (!c2 && S_ISDIR(mode2))
c2 = '/';
return (c1 < c2) ? -1 : (c1 > c2) ? 1 : 0;
}