summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:52:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-19 14:53:01 +0000
commitf3b6c222fb11c96e2f8bbaa0622f46c8ec486874 (patch)
tree0f38497775e27d3e16b20573b36dd22aa5b24f3e /tools
parentReleasing debian version 0.17.0-1. (diff)
downloadgitlint-f3b6c222fb11c96e2f8bbaa0622f46c8ec486874.tar.xz
gitlint-f3b6c222fb11c96e2f8bbaa0622f46c8ec486874.zip
Merging upstream version 0.18.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools')
-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