Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cache-tree: protect against "git prune".
[gitweb.git]
/
cache-tree.c
diff --git
a/cache-tree.c
b/cache-tree.c
index f6d1dd1d7f8f849d543131bfebb4237bb4f53bd3..b34b0bc3177de67d401f2a91d9355f6751e3d0d4 100644
(file)
--- a/
cache-tree.c
+++ b/
cache-tree.c
@@
-177,7
+177,7
@@
static int update_one(struct cache_tree *it,
char *buffer;
int i;
- if (0 <= it->entry_count)
+ if (0 <= it->entry_count
&& has_sha1_file(it->sha1)
)
return it->entry_count;
/*