From: Shourya Shukla Date: Thu, 18 Feb 2021 18:49:31 GMT Subject: [PATCH 2/2] t3600: amend test 46 to check for '.gitmodules' modification Message-ID: <20210218184931.83613-3-periperidip@gmail.com> In-Reply-To: <20210218184931.83613-1-periperidip@gmail.com> Following commit e5a439dc71 (rm: changes in the '.gitmodules' are staged after using '--cached', 2021-02-18), amend test 46 of the script to ensure that the test also checks for '.gitmodules' modification after a 'git rm --cached ' i.e., the entry of the submodule in question is removed from the file. Signed-off-by: Shourya Shukla --- t/t3600-rm.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh index 7547f11a5c..45aff97b90 100755 --- a/t/t3600-rm.sh +++ b/t/t3600-rm.sh @@ -309,6 +309,7 @@ cat >expect.modified_untracked <expect.cached <actual && - test_cmp expect.cached actual && - git config -f .gitmodules submodule.sub.url && - git config -f .gitmodules submodule.sub.path + test_cmp expect.cached actual ' test_expect_success 'rm --dry-run does not touch the submodule or .gitmodules' ' -- 2.25.1