summaryrefslogtreecommitdiffstats
path: root/tools/test-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-hook.sh')
-rwxr-xr-xtools/test-hook.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-hook.sh b/tools/test-hook.sh
index 85d2d27..d83918e 100755
--- a/tools/test-hook.sh
+++ b/tools/test-hook.sh
@@ -12,7 +12,7 @@ set -euo pipefail
rm -rf .tox/x
mkdir -p .tox/x
cd .tox/x
-git init
+git init --initial-branch=main
# we add a file to the repo to avoid error due to no file to to lint
touch foo.yml
git add foo.yml