From: W. Trevor King Date: Mon, 3 Dec 2012 12:53:10 +0000 (-0500) Subject: t7400: explicit update of inactive submod shouldn't return 0 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f83b029a27bf62865c8d28c045cbfb5ea8a4a93b;p=git.git 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 --- 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 &&