Worktree created in home directory instead of ~/.kugetsu-worktrees in v0.2.9 #185
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Bug
In v0.2.9,
cmd_startcreates worktrees in the daemon's working directory (/home/shoko) instead of ``.Root cause:
kugetsu-session.shline 249 callscreate_worktreewithout passing the `` argument. Increate_worktree()(kugetsu-worktree.sh line 68),parent_dirdefaults to/home/shoko:Since the daemon runs from
/home/shoko, worktrees end up at/home/shoko/git.fbrns.co-shoko-kugetsu-158instead of~/.kugetsu-worktrees/git.fbrns.co-shoko-kugetsu-158.Affected versions: v0.2.9
Reproduction
kugetsu queue-daemon startkugetsu delegate "https://git.fbrns.co/shoko/kugetsu/issues/158"/home/shoko/git.fbrns.co-shoko-kugetsu-158instead of~/.kugetsu-worktrees/Fix
kugetsu-session.shline 249: