Overwrite worktree

This commit is contained in:
2024-05-21 12:42:41 -04:00
parent 1464cd93ba
commit 2d816f3b8a

View File

@@ -566,7 +566,6 @@ fromSource() {
wt_cmd=(git -C "$GITSRCDIR" wt_cmd=(git -C "$GITSRCDIR"
worktree add worktree add
--force --force
--force
--detach --detach
"$GITWORKTREEDIR") "$GITWORKTREEDIR")
@@ -590,7 +589,7 @@ fromSource() {
;; ;;
esac esac
# [[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR" [[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR" # overwrite worktree changes
execute "${wt_cmd[@]}" "$wt_commit" execute "${wt_cmd[@]}" "$wt_commit"