Skip to content
Snippets Groups Projects
Commit b5ab6d0b authored by Arne Zachlod's avatar Arne Zachlod Committed by Paul Spooren
Browse files

scripts/env: fix env for git conf init.defaultBranch not set to "master"


Since version 2.28, git has a config option init.defaultBranch to set the name
of the first branch created with git init. The env script expects this name to
be "master". This commit sets the initial branch name to "master"
instead of using the git configured one.

Signed-off-by: default avatarArne Zachlod <arne@nerdkeller.org>
parent 7bc18aa2
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ env_init() {
mkdir -p "$ENVDIR" || error "Failed to create the environment directory"
cd "$ENVDIR" || error "Failed to switch to the environment directory"
[ -d .git ] || {
git init &&
git init -b master &&
touch .config &&
mkdir files &&
git add . &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment