Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-send-email: Do not make @-less message ID
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index 7df01af78805686572e32d5ade1460fc925a9a71..858f08c34a2de917b630d02974a839d626d23e7f 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;