Skip to content

Doesn't work with "git worktree" creating working trees #75

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

Open
tpunder opened this issue Jun 26, 2017 · 1 comment
Open

Doesn't work with "git worktree" creating working trees #75

tpunder opened this issue Jun 26, 2017 · 1 comment

Comments

@tpunder
Copy link

tpunder commented Jun 26, 2017

I noticed that gr doesn't work with a git worktree created working tree. I get an error saying Missing .git directory. The error is accurate since there is no .git directory. Instead git worktree creates a .git file with contents that looks like

gitdir: /path/to/myproject/.git/worktrees/myproject-somebranch

It would be cool if gr played nicely with git worktree!

Information about git worktree here: https://git-scm.com/docs/git-worktree

@tpunder
Copy link
Author

tpunder commented Jun 26, 2017

The error I'm seeing comes from here:

style('Missing .git directory', 'red')

Looks like the logic of this function needs to be changed:

git: function(req) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant