submodule: update and add must honor --quiet flag
[gitweb.git] / t / t7400-submodule-basic.sh
index 874279e32da98ac2c20137a207a0d115f073e444..f086db10731b147a722686efd5e2d19c7be72dd1 100755 (executable)
@@ -75,7 +75,8 @@ test_expect_success 'submodule add' '
 
        (
                cd addtest &&
-               git submodule add "$submodurl" submod &&
+               git submodule add -q "$submodurl" submod >actual &&
+               test ! -s actual &&
                git submodule init
        ) &&
 
@@ -273,7 +274,8 @@ test_expect_success 'update should work when path is an empty dir' '
        echo "$rev1" >expect &&
 
        mkdir init &&
-       git submodule update &&
+       git submodule update -q >update.out &&
+       test ! -s update.out &&
 
        inspect init &&
        test_cmp expect head-sha1