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>
Pierre Habouzit committed
Jun 7, 2007 at 22:44 UTC
e1944f4074f845e4dd15fb77856b4463f51c7d81
1 file changed
-2
sha1_name.c
-2
@@ -682,8 +682,6 @@ int get_sha1_with_mode(const char *name, unsigned char *sha1, unsigned *mode)
682
namelen = namelen - (cp - name);
683
if (!active_cache)
684
read_cache();
685
- if (active_nr < 0)
686
- return -1;
685
pos = cache_name_pos(cp, namelen);
686
if (pos < 0)
687
pos = -pos - 1;