forked from ThePrimeagen/git-worktree.nvim
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Disallow nil passing to create_dirs()
To tackle deletion and creation path issues, commit 6e1fa15 ("feat: Enable user to get "out" of a worktree") added the possibility of passing nil to change_dirs(). But the problems can be solved in a better way: When deleting, check if the selection is the current tree then change dir to gitroot_dir() if so. When creating, add gitroot_dir() as prefix.
- Loading branch information
1 parent
bac72c2
commit c2ee4b3
Showing
2 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters