test-lib: quiet down init-db output for tests
I don't think anybody running tests needs to know they're running init-db and creating a repository for testing. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Dec 28, 2006 at 01:10 UTC
6f7c86df7ade3956559071ea529a711377d80819
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -176,7 +176,7 @@ test_create_repo () {
176
repo="$1"
177
mkdir "$repo"
178
cd "$repo" || error "Cannot setup test environment"
179
- "$GIT_EXEC_PATH/git" init-db --template=$GIT_EXEC_PATH/templates/blt/ 2>/dev/null ||
179
+ "$GIT_EXEC_PATH/git" init-db --template=$GIT_EXEC_PATH/templates/blt/ >/dev/null 2>&1 ||
180
error "cannot run git init-db -- have you built things yet?"
181
mv .git/hooks .git/hooks-disabled
182
cd "$owd"