summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/create-test-repo.sh2
-rw-r--r--tools/windows/create-test-repo.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/create-test-repo.sh b/tools/create-test-repo.sh
index 79934d6..5fddf8c 100755
--- a/tools/create-test-repo.sh
+++ b/tools/create-test-repo.sh
@@ -11,7 +11,7 @@ echo "pwd=$CWD"
# Create the repo
cd /tmp
reponame=$(date +gitlint-test-%Y-%m-%d_%H-%M-%S)
-git init $reponame
+git init --initial-branch main $reponame
cd $reponame
# Do some basic config
diff --git a/tools/windows/create-test-repo.bat b/tools/windows/create-test-repo.bat
index 27e3394..54cf146 100644
--- a/tools/windows/create-test-repo.bat
+++ b/tools/windows/create-test-repo.bat
@@ -15,7 +15,7 @@ set Reponame=gitlint-test-%datetime%
echo %Reponame%
:: Create git repo
-git init %Reponame%
+git init --initial-branch main %Reponame%
cd %Reponame%
:: Do some basic config