Thread (15 messages) flat view 15 messages, 3 authors, 2016-06-15
STALE3728d

[PATCH 2/2] Added a test for "submodule status" when the submodule's working directory has deleted files.

From: Marc Branchaud <hidden>
Date: 2016-06-15 22:51:21
Subsystem: the rest · Maintainer: Linus Torvalds

---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help