Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
submodule: convert stage_updated_gitmodules to take a struct index_state
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 8ae6cb6285a86fe3117200cb789bbf57a2063923..afe4b90f6ee0e6c00af3e57c7c92ac5245bd1792 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-1164,6
+1164,9
@@
int sha1_object_info_extended(const unsigned char *sha1, struct object_info *oi,
lookup_replace_object(sha1) :
sha1;
+ if (is_null_sha1(real))
+ return -1;
+
if (!oi)
oi = &blank_oi;