From 56ba8918a9f0e98f89741b359f7618809f14b9dd Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 25 Jan 2007 22:28:38 +0000 Subject: [PATCH] Hide the test_create_repo output git-init-db now prints some info when initialising a tree, just hide it in the test scripts, unless --verbose was specified. Signed-off-by: Catalin Marinas --- t/test-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 459d5cb..b44a590 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -159,11 +159,11 @@ test_create_repo () { repo="$1" mkdir "$repo" cd "$repo" || error "Cannot setup test environment" - git-init-db 2>/dev/null || + git-init-db >&3 2>&4 || error "cannot run git-init-db -- have you installed git-core?" mv .git/hooks .git/hooks-disabled echo "empty start" | - git-commit-tree `git-write-tree` >.git/refs/heads/master 2>/dev/null || + git-commit-tree `git-write-tree` >.git/refs/heads/master 2>&4 || error "cannot run git-commit -- is your git-core funtionning?" cd "$owd" } -- 2.11.0