Signed-off-by: Stefan Beller <[email protected]>
---
git-submodule.sh | 2 +-
t/t7400-submodule-basic.sh | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index 578ec48..eea27f8 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -693,7 +693,7 @@ cmd_update()
# Only mention uninitialized submodules when its
# path have been specified
test "$#" != "0" &&
- say "$(eval_gettext "Submodule path '\$displaypath' not
initialized
+ say >&2 "$(eval_gettext "Submodule path '\$displaypath'
not initialized
Maybe you want to use 'update --init'?")"
continue
fi
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index 540771c..32a89b8 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -462,9 +462,9 @@ test_expect_success 'update --init' '
git config --remove-section submodule.example &&
test_must_fail git config submodule.example.url &&
- git submodule update init > update.out &&
- cat update.out &&
- test_i18ngrep "not initialized" update.out &&
+ git submodule update init 2> update.err &&
+ cat update.err &&
+ test_i18ngrep "not initialized" update.err &&
test_must_fail git rev-parse --resolve-git-dir init/.git &&
git submodule update --init init &&
@@ -480,9 +480,9 @@ test_expect_success 'update --init from subdirectory' '
mkdir -p sub &&
(
cd sub &&
- git submodule update ../init >update.out &&
- cat update.out &&
- test_i18ngrep "not initialized" update.out &&
+ git submodule update ../init 2>update.err &&
+ cat update.err &&
+ test_i18ngrep "not initialized" update.err &&
test_must_fail git rev-parse --resolve-git-dir ../init/.git &&
git submodule update --init ../init
--
2.5.0.277.gfdc362b.dirty
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html