Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
contrib/git-credential-gnome-keyring.c: use secure memory for reading passwords
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 8c2d1ed52d6663507ff5b03bc7e5b4f4070403d1..f1b649742f0d363c252c47f66f6c7083647f48e6 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2995,7
+2995,10
@@
int has_sha1_file(const unsigned char *sha1)
if (find_pack_entry(sha1, &e))
return 1;
- return has_loose_object(sha1);
+ if (has_loose_object(sha1))
+ return 1;
+ reprepare_packed_git();
+ return find_pack_entry(sha1, &e);
}
static void check_tree(const void *buf, size_t size)