fix: worktree created in wrong directory (issue #185) #186
Reference in New Issue
Block a user
Delete Branch "fix/issue-185-worktree-wrong-directory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixed
kugetsu startcreating worktrees in the daemon's working directory ($PWD) instead of~/.kugetsu-worktrees/.Bug
cmd_start()calledcreate_worktree "$issue_ref"without passing$WORKTREES_DIRas the second argument. Thecreate_worktree()function defaults to$PWDwhenparent_diris not specified.Fix
Changed
create_worktree "$issue_ref"tocreate_worktree "$issue_ref" "$WORKTREES_DIR"at line 249.Changes
kugetsu-session.sh:249: Pass$WORKTREES_DIRtocreate_worktree()lgtm