diff --git a/test/lib/create-git-repo.sh b/test/lib/create-git-repo.sh index 110dfdf..3549904 100644 --- a/test/lib/create-git-repo.sh +++ b/test/lib/create-git-repo.sh @@ -4,7 +4,7 @@ cd "$scriptDir/.." amend=--amend - if [[ ! -e .git ]]; then + if [[ ! -e .git ]] || ! git rev-parse HEAD 2>/dev/null; then git init amend= fi