mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
lib-submodule-update: teach test_submodule_content the -C <dir> flag
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a70ef2dac4
commit
2f70edccb4
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue