X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7401-submodule-summary.sh;h=cee319da0ae6ef9ec3b220adbb178e116713db2a;hb=c24138bc55bcbbde2ea8601c504752e5a39f53f2;hp=d3c039f724c3a1247417b5fd29d6bd50a88f54be;hpb=b599672316ae0e0cf827e5e2cd6d3bb403d7b8cd;p=git.git diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh index d3c039f72..cee319da0 100755 --- a/t/t7401-submodule-summary.sh +++ b/t/t7401-submodule-summary.sh @@ -227,4 +227,11 @@ test_expect_success 'fail when using --files together with --cached' " test_must_fail git submodule summary --files --cached " +test_expect_success 'should not fail in an empty repo' " + git init xyzzy && + cd xyzzy && + git submodule summary >output 2>&1 && + test_cmp output /dev/null +" + test_done