From: Stefan Beller Date: Tue, 14 Mar 2017 21:46:28 +0000 (-0700) Subject: lib-submodule-update: teach test_submodule_content the -C flag X-Git-Tag: v2.13.0-rc0~59^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2f70edccb4c424ded7dc9afa4da6b17e213a5f96 lib-submodule-update: teach test_submodule_content the -C flag Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-update.sh index c0d6325133..00128f28b5 100755 --- a/t/lib-submodule-update.sh +++ b/t/lib-submodule-update.sh @@ -193,6 +193,11 @@ test_superproject_content () { # Test that the given submodule at path "$1" contains the content according # to the submodule commit recorded in the superproject's commit "$2" test_submodule_content () { + if test x"$1" = "x-C" + then + cd "$2" + shift; shift; + fi if test $# != 2 then echo "test_submodule_content needs two arguments"