X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7401-submodule-summary.sh;h=61498293b99e1cbbb4bfb4de45b6d14488aaddd0;hb=5dc1308562ab5991ecada68b06707709bea408c9;hp=0f3c42ab35891d1dd671649ff38074a1d83e2a5b;hpb=769f60aed3906ba9cd1151731f2551087cc8502f;p=git.git diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh index 0f3c42ab3..61498293b 100755 --- a/t/t7401-submodule-summary.sh +++ b/t/t7401-submodule-summary.sh @@ -5,7 +5,7 @@ test_description='Summary support for submodules -This test tries to verify the sanity of summary subcommand of git-submodule. +This test tries to verify the sanity of summary subcommand of git submodule. ' . ./test-lib.sh @@ -30,7 +30,7 @@ commit_file () { } test_create_repo sm1 && -add_file . foo +add_file . foo >/dev/null head1=$(add_file sm1 foo1 foo2) @@ -192,4 +192,17 @@ test_expect_success 'given commit' " EOF " +test_expect_success '--for-status' " + git submodule summary --for-status HEAD^ >actual && + test_cmp actual - < Add foo9 +# +EOF +" + test_done