]> git.ipfire.org Git - thirdparty/git.git/commit
t7419: actually test the branch switching
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>
Tue, 3 Oct 2023 18:50:44 +0000 (20:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Oct 2023 22:32:27 +0000 (15:32 -0700)
commitb027fb07848bdfd84abdf1d6af2cf5d9e4592ffc
tree24836b817dd19720c468fb1e9044d0440cfbf36f
parent387c122131a9f8e4a67122d53955133d099b64a7
t7419: actually test the branch switching

The submodule repo the test set up had the 'topic' branch checked out,
meaning the repo's default branch (HEAD) is the 'topic' branch.

The following tests then pretended to switch between the default branch
and the 'topic' branch. This was papered over by continually adding
commits to the 'topic' branch and checking if the submodule gets updated
to this new commit.

Return the submodule repo to the 'main' branch after setup so we can
actually test the switching behavior.

Signed-off-by: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7419-submodule-set-branch.sh