From 14b28f70f58c5c8b980d1d4e9e57af218f364424 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 4 Apr 2023 12:25:01 +0200 Subject: [PATCH] Fix `gitflow` initialization for arch --- scripts/Common/Config/git/flow/install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/Common/Config/git/flow/install.sh b/scripts/Common/Config/git/flow/install.sh index c971df75..f01f1e3d 100755 --- a/scripts/Common/Config/git/flow/install.sh +++ b/scripts/Common/Config/git/flow/install.sh @@ -1,3 +1,11 @@ #!/bin/bash -git flow config set --global master main -git flow config set --global develop dev +contextRoot="$(mktemp -d)"; +pushd "$contextRoot" > /dev/null; +git init; +git branch main; +git branch dev; +yes "" | git flow init; +git flow config set --global master main; +git flow config set --global develop dev; +popd > /dev/null; +rm -rf "$contextRoot";