trivial: check, if t/trash directory was successfully created
and was successfully entered. Otherwise git-init-db will create it directly in the working directory (t/) which can be dangerous. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Alex Riesen committed
Jan 5, 2006 at 12:57 UTC
2ccd2027b012f481018b9a95929fa8df6ce1d33f
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -195,7 +195,7 @@ test -d ../templates/blt || {
195
test=trash
196
rm -fr "$test"
197
mkdir "$test"
198
-cd "$test"
198
+cd "$test" || error "Cannot setup test environment"
199
"$GIT_EXEC_PATH/git" init-db --template=../../templates/blt/ 2>/dev/null ||
200
error "cannot run git init-db -- have you built things yet?"
201