[PATCH 2/2] Added a test for "submodule status" when the submodule's working directory has deleted files.
---
t/t7400-submodule-basic.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index bbcfc61..d321540 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -331,6 +331,12 @@ test_expect_success 'status should be "up-to-date" after update' '
grep "^ $rev1" list
'
+test_expect_failure 'status should be "modified" if working dir deleted' '
+ rm -rf init/* &&
+ git submodule status >list &&
+ grep "^+$rev1" list
+'
+
test_expect_success 'checkout superproject with subproject already present' '
git checkout initial &&
git checkout master
--
1.7.5.3.686.g35b8