{"thread":{"id":"2982","subject":"trivial: check, if t/trash directory was successfully created","startedAt":"2006-01-05T11:57:36Z","lastAt":"2006-01-05T11:57:36Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"14184","messageId":"81b0412b0601050357s2446b103we3e9beff5de50be9@mail.gmail.com","threadId":"2982","inReplyTo":null,"subject":"trivial: check, if t/trash directory was successfully created","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-01-05T11:57:36Z","receivedAt":"2006-01-05T11:57:36Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"and was successfully entered. Otherwise git-init-db will create it directly\nin the working directory (t/) which can be dangerous.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n\n\nSubject: [PATCH] Check, if trash directory was successfully created\n\nand was entered. Otherwise git-init-db will create it directly in the\nworking directory which can be dangerous with all these nasty rm's\nin the tests\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n\n\n---\n\n t/test-lib.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n01d3f8fc7499a2dd5e21513187de7d73af080533\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\nindex a97d259..7534a76 100755\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -195,7 +195,7 @@ test -d ../templates/blt || {\n test=trash\n rm -fr \"$test\"\n mkdir \"$test\"\n-cd \"$test\"\n+cd \"$test\" || error \"Cannot setup test environment\"\n \"$GIT_EXEC_PATH/git\" init-db --template=../../templates/blt/ 2>/dev/null ||\n error \"cannot run git init-db -- have you built things yet?\"\n \n-- \n1.0.GIT\n"}]}