summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3670a5)
raw | patch | inline | side by side (parent: f3670a5)
author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Sat, 7 Feb 2009 13:43:15 +0000 (14:43 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 7 Feb 2009 20:49:58 +0000 (12:49 -0800) |
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>
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>
git-submodule.sh | patch | blob | history | |
t/t7400-submodule-basic.sh | patch | blob | history |
diff --git a/git-submodule.sh b/git-submodule.sh
index 2f47e065fe8b7ca856f4527d6a507a28f1b2a06b..6cc2d334c08e1c3155c99087ca1e863400ffea23 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
#
module_list()
{
- git ls-files --stage -- "$@" | grep '^160000 '
+ git ls-files --error-unmatch --stage -- "$@" | grep '^160000 '
}
#
index a74f24c0db69aa964aaf0e83f8ab978ffc0cc7a2..b8cb2df6670a18ebf54fecbb97a48d0c07a06e2b 100755 (executable)
'
+test_expect_success 'submodule <invalid-path> warns' '
+
+ git submodule no-such-submodule 2> output.err &&
+ grep "^error: .*no-such-submodule" output.err
+
+'
+
test_done