diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:07 -0800 |
commit | 490b8ad76fec278be532b893d2b5b6df9a621bec (patch) | |
tree | f893f31a2b4d11f86d51ec9ada900096b3d1ad0e /t | |
parent | Merge branch 'hm/imap-send-cram-md5' (diff) | |
parent | submodule summary: Don't barf when invoked in an empty repo (diff) | |
download | tgif-490b8ad76fec278be532b893d2b5b6df9a621bec.tar.xz |
Merge branch 'jh/maint-submodule-status-in-void'
* jh/maint-submodule-status-in-void:
submodule summary: Don't barf when invoked in an empty repo
Diffstat (limited to 't')
-rwxr-xr-x | t/t7401-submodule-summary.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh index d3c039f724..cee319da0a 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 |