Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
merge: notice local merging of tags and keep it unwrapped
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 14b05a43bcc98f0e0ccb1bf1ca8f219a4a01fe61..7d0779f6cfd60149379f957941ebef18aef735ab 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-598,8
+598,11
@@
static int grep_object(struct grep_opt *opt, const struct pathspec *pathspec,
struct strbuf base;
int hit, len;
+ read_sha1_lock();
data = read_object_with_reference(obj->sha1, tree_type,
&size, NULL);
+ read_sha1_unlock();
+
if (!data)
die(_("unable to read tree (%s)"), sha1_to_hex(obj->sha1));