From: Stefan Beller Date: Tue, 19 Dec 2017 22:26:34 GMT Subject: [PATCH 3/5] t/lib-submodule-update.sh: add new test for submodule internal change Message-ID: <20171219222636.216001-4-sbeller@google.com> In-Reply-To: <20171219222636.216001-1-sbeller@google.com> The test is marked as a failure as the fix comes in a later patch. Signed-off-by: Stefan Beller --- t/lib-submodule-update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-update.sh index fb0173ea87..15cf3e0b8b 100755 --- a/t/lib-submodule-update.sh +++ b/t/lib-submodule-update.sh @@ -1015,4 +1015,15 @@ test_submodule_forced_switch_recursing_with_args () { test_submodule_content sub1 origin/modify_sub1 ) ' + + test_expect_failure "$command: changed submodule worktree is reset" ' + prolog && + reset_work_tree_to_interested add_sub1 && + ( + cd submodule_update && + rm sub1/file1 && + $command HEAD && + test_path_is_file sub1/file1 + ) + ' } -- 2.15.1.620.gb9897f4670-goog