Skip to content

Commit 8329f67

Browse files
committed
Merge branch 'tb/cat-file-objectmode-update'
Code clean-up. * tb/cat-file-objectmode-update: builtin/cat-file.c: simplify calling `report_object_status()`
2 parents a23c825 + 2cebca0 commit 8329f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/cat-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static void batch_object_write(const char *obj_name,
495495
OBJECT_INFO_LOOKUP_REPLACE);
496496
if (ret < 0) {
497497
if (data->mode == S_IFGITLINK)
498-
report_object_status(opt, oid_to_hex(&data->oid), &data->oid, "submodule");
498+
report_object_status(opt, NULL, &data->oid, "submodule");
499499
else
500500
report_object_status(opt, obj_name, &data->oid, "missing");
501501
return;

0 commit comments

Comments
 (0)