{"thread":{"id":"14168","subject":"[PATCH] test-lib.sh: show git init output when in verbose mode","startedAt":"2008-06-26T18:35:19Z","lastAt":"2008-06-26T18:35:19Z","messageCount":1,"participants":["Lea Wiemann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"81308","messageId":"1214505319-24946-1-git-send-email-LeWiemann@gmail.com","threadId":"14168","inReplyTo":null,"subject":"[PATCH] test-lib.sh: show git init output when in verbose mode","fromName":"Lea Wiemann","fromEmail":"lewiemann@gmail.com","sentAt":"2008-06-26T18:35:19Z","receivedAt":"2008-06-26T18:35:19Z","isPatch":true,"sender":{"key":"lewiemann@gmail.com","avatar":null},"body":"Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>\n---\n\nI've had a hard-to-spot problem where git would crash due to a missing\nlibrary, and this solved it. :)  IMHO there's no reason not to show the\ngit init output when --verbose is given.\n\n(FD 3 and 4 are the streams where verbose output is redirected; in\nnon-verbose mode they're redirected to /dev/null.)\n\n t/test-lib.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\nindex a9fc621..8e2849b 100644\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -408,7 +408,7 @@ test_create_repo () {\n \trepo=\"$1\"\n \tmkdir \"$repo\"\n \tcd \"$repo\" || error \"Cannot setup test environment\"\n-\t\"$GIT_EXEC_PATH/git\" init \"--template=$GIT_EXEC_PATH/templates/blt/\" >/dev/null 2>&1 ||\n+\t\"$GIT_EXEC_PATH/git\" init \"--template=$GIT_EXEC_PATH/templates/blt/\" >&3 2>&4 ||\n \terror \"cannot run git init -- have you built things yet?\"\n \tmv .git/hooks .git/hooks-disabled\n \tcd \"$owd\"\n-- \n1.5.6.1.184.g27776.dirty\n"}]}