-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: find bare root when creating worktrees #73
Comments
I run into the same problem will try to improve this |
also have this problem, thanks for looking into it |
I tested the code from #76 but there are some caveats with it: it only works if the bare root directory name doesn't end with The problem is our e.g.: <foo>
Currently when we change We then have another problem: should we account for the use of git environment variables? We can change I haven't deep dived into the code but those are some problems that I can think of. If I have time I'll try to come up with a solution for this. |
@jvcarli wouldn't it be possible to have separate handling for both of these cases? If the user is in a non-bare repo then simply prompt to the user to setup a base-directory for that specific repository. if it is a bare repository then just keep working as it currently is. |
👋,
I'm using this plugin together with
git clone --bare <repo> .git
, which also in recommended in the README. When triggeringTelescope git_worktree create_git_worktree
it asks for a path to create the worktree in. If I inputtest
as a path it will add the worktree in.git/test
which I obviously do not want. The correct placement would be../test
here.It would be really nice if was possible to configure
git-worktree.nvim
so it's able to find thebare
root.The text was updated successfully, but these errors were encountered: