OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4890888
)
Active_nr is unsigned, hence can't be < 0
author
Pierre Habouzit
<madcoder@debian.org>
Thu, 7 Jun 2007 20:44:59 +0000
(22:44 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 8 Jun 2007 09:37:18 +0000
(
02:37
-0700)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
patch
|
blob
|
history
diff --git
a/sha1_name.c
b/sha1_name.c
index
7df01af
..
858f08c
100644
(file)
--- 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;