From f83b029a27bf62865c8d28c045cbfb5ea8a4a93b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 3 Dec 2012 07:53:10 -0500 Subject: [PATCH] t7400: explicit update of inactive submod shouldn't return 0 We already expected update to print a 'not initialized' error message in this situation. It seems reasonable that it should also exit with a non-zero status. Signed-off-by: W. Trevor King --- t/t7400-submodule-basic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index f6c53e2cb..8ce45ce2c 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -385,7 +385,7 @@ test_expect_success 'update --init' ' git config --remove-section submodule.example && test_must_fail git config submodule.example.url && - git submodule update init > update.out && + test_must_fail git submodule update init > update.out && cat update.out && test_i18ngrep "not initialized" update.out && test_must_fail git rev-parse --resolve-git-dir init/.git && -- 2.26.2