The test is marked as a failure as the fix comes in a later patch.
Signed-off-by: Stefan Beller <[email protected]>
---
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