t7400: explicit update of inactive submod shouldn't return 0
authorW. Trevor King <wking@tremily.us>
Mon, 3 Dec 2012 12:53:10 +0000 (07:53 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 3 Dec 2012 14:38:35 +0000 (09:38 -0500)
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 <wking@tremily.us>
t/t7400-submodule-basic.sh

index f6c53e2cb11c499bbee80534975363ad3ae46b1b..8ce45ce2c5d03815121c2cdce6f4773c05303ec8 100755 (executable)
@@ -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 &&