]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: use submodule repository when preparing summary
authorMichael Forney <mforney@mforney.org>
Tue, 23 Jun 2020 20:56:59 +0000 (13:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2020 16:13:08 +0000 (09:13 -0700)
commit85a1ec2c32f4f41dd4526651df4b3666a41334fe
tree52c79aafa293ad178c7aaa7e14981f7113ef067c
parentea3f7e598c8f1171f0bd02da777dc526cdb8424d
submodule: use submodule repository when preparing summary

In show_submodule_header(), we gather the left and right commits
of the submodule repository, as well as the merge bases. However,
prepare_submodule_summary() initializes the rev_info with the_repository,
so we end up parsing the commit in the wrong repository.

This results in a fatal error in parse_commit_in_graph(), since the
passed item does not belong to the repository's commit graph.

Signed-off-by: Michael Forney <mforney@mforney.org>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c