Commit 99a26bb
committed
fix: setting upstream after creating worktree from origin branch
## what
- setting upstream after creating worktree from origin branch
## how
- find and replace `origin/` to `` using the `branch` variable
## why
- when creating worktree from origin branch (ex `origin/branch-1`), it
would add the upstream as `origin/origin/branch-1`
- this will fix the duplicate origin issue
## where
- ./lua/git-worktree/init.lua
## usage1 parent 2517409 commit 99a26bb
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
0 commit comments