summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-02 12:44:07 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-02 12:44:07 -0800
commit490b8ad76fec278be532b893d2b5b6df9a621bec (patch)
treef893f31a2b4d11f86d51ec9ada900096b3d1ad0e /t
parentMerge branch 'hm/imap-send-cram-md5' (diff)
parentsubmodule summary: Don't barf when invoked in an empty repo (diff)
downloadtgif-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-xt/t7401-submodule-summary.sh7
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