Skip to content

Commit add0a35

Browse files
committed
Merge branch 'rs/grep-simpler-parse-object-or-die-call' into master
* rs/grep-simpler-parse-object-or-die-call: grep: avoid using oid_to_hex() with parse_object_or_die()
2 parents 5942edb + 98c6871 commit add0a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static int grep_submodule(struct grep_opt *opt,
466466
struct strbuf base = STRBUF_INIT;
467467

468468
obj_read_lock();
469-
object = parse_object_or_die(oid, oid_to_hex(oid));
469+
object = parse_object_or_die(oid, NULL);
470470
obj_read_unlock();
471471
data = read_object_with_reference(&subrepo,
472472
&object->oid, tree_type,

0 commit comments

Comments
 (0)