summaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-02-07 13:43:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-07 20:49:58 (GMT)
commit496917b721adae11e596cd44b13cb8a49c388de7 (patch)
tree4d6be3ccbbf938eb523fb62cbcd21297d33056b8 /t/t7400-submodule-basic.sh
parentf3670a5749d704fe1edee4201f9b23adbf0bf967 (diff)
downloadgit-496917b721adae11e596cd44b13cb8a49c388de7.zip
git-496917b721adae11e596cd44b13cb8a49c388de7.tar.gz
git-496917b721adae11e596cd44b13cb8a49c388de7.tar.bz2
submodule: warn about non-submodules
Earlier, when you called git submodule some/bogus/path Git would silently ignore the path, without warning the user about the likely mistake. Now it does. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-xt/t7400-submodule-basic.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index a74f24c..b8cb2df 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -240,4 +240,11 @@ test_expect_success 'ls-files gracefully handles trailing slash' '
'
+test_expect_success 'submodule <invalid-path> warns' '
+
+ git submodule no-such-submodule 2> output.err &&
+ grep "^error: .*no-such-submodule" output.err
+
+'
+
test_done