summaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorPeter Kaestle <peter.kaestle@nokia.com>2020-01-24 10:34:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-27 18:14:00 (GMT)
commit3b2885ec9ba0b1328858231c9f5095e7f85d9f23 (patch)
tree72fe6c18f213372acc827d00b2cffa58917da059 /t/t7400-submodule-basic.sh
parentace912bfb8e0cf85e29cc2d81fd847a96637be36 (diff)
downloadgit-3b2885ec9ba0b1328858231c9f5095e7f85d9f23.zip
git-3b2885ec9ba0b1328858231c9f5095e7f85d9f23.tar.gz
git-3b2885ec9ba0b1328858231c9f5095e7f85d9f23.tar.bz2
submodule: fix status of initialized but not cloned submodules
Original bash helper for "submodule status" was doing a check for initialized but not cloned submodules and prefixed the status with a minus sign in case no .git file or folder was found inside the submodule directory. This check was missed when the original port of the functionality from bash to C was done. Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-xt/t7400-submodule-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index 5c9acb8..86b424f 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -377,7 +377,7 @@ test_expect_success 'init should register submodule url in .git/config' '
test_cmp expect url
'
-test_expect_failure 'status should still be "missing" after initializing' '
+test_expect_success 'status should still be "missing" after initializing' '
rm -fr init &&
mkdir init &&
git submodule status >lines &&