summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2007-06-07 22:44:59 +0200
committerJunio C Hamano <gitster@pobox.com>2007-06-08 02:37:18 -0700
commite1944f4074f845e4dd15fb77856b4463f51c7d81 (patch)
treed360ec03cee73ef7a31990c5dfb74a1b147dc266 /sha1_name.c
parent4890888d742e12044b1f4b89a5d10437a6371253 (diff)
downloadgit-e1944f4074f845e4dd15fb77856b4463f51c7d81.tar.gz
Active_nr is unsigned, hence can't be < 0
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 7df01af788..858f08c34a 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -682,8 +682,6 @@ int get_sha1_with_mode(const char *name, unsigned char *sha1, unsigned *mode)
namelen = namelen - (cp - name);
if (!active_cache)
read_cache();
- if (active_nr < 0)
- return -1;
pos = cache_name_pos(cp, namelen);
if (pos < 0)
pos = -pos - 1;