Skip to content

Commit

Permalink
Address todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Krismix1 committed Jan 29, 2024
1 parent 05adae8 commit 99d0bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ This command will be passed via `bash -c`, so you can use bash shenanigans if yo
This is a work in progress tool, so it may be rough in some areas...

- Figure out how to build and share the packaged version of the tool
- Split branch name by '/' and join parts to a Path (i.e. generate platform dependant dir name)
- Pre-commit hook
- Polish logging
- Polish errors handling
Expand Down
3 changes: 2 additions & 1 deletion src/worktree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ fn new_worktree(
worktree_add_options.reference(Some(new_branch.get()));

let repo_root = get_root_path(repo)?;
let worktree_path = repo_root.join(branch_name); // TODO: Perhaps split by '/' and then join parts to path
// convert "/" to OS specific path separator
let worktree_path = repo_root.join(branch_name.split('/').collect::<PathBuf>());

let parent_dir = worktree_path
.parent()
Expand Down

0 comments on commit 99d0bc5

Please sign in to comment.