diff --git a/acceptance/script.prepare b/acceptance/script.prepare index a8ea942bb4..fabd44d95e 100644 --- a/acceptance/script.prepare +++ b/acceptance/script.prepare @@ -49,6 +49,10 @@ trace() { } git-repo-init() { + if git rev-parse --git-dir > /dev/null 2>&1; then + echo "git-repo-init: already inside a git repository" >&2 + return 1 + fi git init -qb main git config core.autocrlf false git config user.name "Tester"