mirror of
https://github.com/git/git
synced 2024-08-24 02:11:08 +00:00
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>
This commit is contained in:
parent
10ae7d86c1
commit
2ccd2027b0
|
@ -195,7 +195,7 @@ test -d ../templates/blt || {
|
|||
test=trash
|
||||
rm -fr "$test"
|
||||
mkdir "$test"
|
||||
cd "$test"
|
||||
cd "$test" || error "Cannot setup test environment"
|
||||
"$GIT_EXEC_PATH/git" init-db --template=../../templates/blt/ 2>/dev/null ||
|
||||
error "cannot run git init-db -- have you built things yet?"
|
||||
|
||||
|
|
Loading…
Reference in a new issue