From: Johan Herland Date: Wed, 19 Aug 2009 01:45:21 +0000 (+0200) Subject: git submodule foreach: test access to submodule name as '$name' X-Git-Tag: v1.6.5-rc0~32^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9aec7e0ba69334cf9bfc6bca6abbea7e84d676b2;p=git.git git submodule foreach: test access to submodule name as '$name' Add verification of the behaviour of '$name' to the git submodule foreach selftest. Signed-off-by: Johan Herland Signed-off-by: Junio C Hamano --- diff --git a/t/t7407-submodule-foreach.sh b/t/t7407-submodule-foreach.sh index 76e0734ce..991aa80c8 100755 --- a/t/t7407-submodule-foreach.sh +++ b/t/t7407-submodule-foreach.sh @@ -61,9 +61,9 @@ sub3sha1=$(cd super/sub3 && git rev-parse HEAD) cat > expect < ../actual + git submodule foreach "echo \$name-\$path-\$sha1" > ../actual ) && test_cmp expect actual '