Fix worktree option
This commit is contained in:
@@ -541,9 +541,9 @@ fromSource() {
|
|||||||
|
|
||||||
|
|
||||||
if [[ ${P_ARR[release]} == "snapshot" ]]; then
|
if [[ ${P_ARR[release]} == "snapshot" ]]; then
|
||||||
git -C "$GITSRCDIR" worktree -d add "$GITWORKTREEDIR" master
|
git -C "$GITSRCDIR" worktree add -d "$GITWORKTREEDIR" master
|
||||||
else
|
else
|
||||||
git -C "$GITSRCDIR" worktree -d add "$GITWORKTREEDIR" "v$RELEASE"
|
git -C "$GITSRCDIR" worktree add -d "$GITWORKTREEDIR" "v$RELEASE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd "$GITWORKTREEDIR" &>/dev/null || return 1
|
pushd "$GITWORKTREEDIR" &>/dev/null || return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user