Skip to content
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

doesn't support git worktree #10

Open
banyudu opened this issue Mar 21, 2020 · 13 comments · May be fixed by #14
Open

doesn't support git worktree #10

banyudu opened this issue Mar 21, 2020 · 13 comments · May be fixed by #14

Comments

@banyudu
Copy link

banyudu commented Mar 21, 2020

In a git worktree, there's no .git/HEAD file, so gitHeadPath will return an error path.

Consider using find-git-root instead of findup-sync

@joscha
Copy link

joscha commented Feb 18, 2021

I changed the code to use find-git-root, but unfortunately that's not the only change needed, as there is no .git/HEAD either inside the worktree reference, the HEAD is directly inside the git root. @jonschlinkert if I open a PR can we get this fixed?

@jonschlinkert
Copy link
Owner

jonschlinkert commented Feb 18, 2021 via email

joscha added a commit to joscha/git-branch that referenced this issue Feb 19, 2021
@joscha joscha linked a pull request Feb 19, 2021 that will close this issue
@joscha
Copy link

joscha commented Feb 19, 2021

here you go: #14

@joscha
Copy link

joscha commented Feb 20, 2021 via email

@joscha
Copy link

joscha commented Feb 23, 2021

@jonschlinkert please let me know if there is anything else I can do to get this in. The PR is fairly minimally invasive adds a test and will allow us to close a few other issues. Would be great to get it merged. If you do not want to merge it, that is okay as well, but please let me know as then I might fork this project and publish it independently.

@joscha
Copy link

joscha commented Mar 9, 2021

one last attempt - ping @jonschlinkert ?

@joscha
Copy link

joscha commented Mar 12, 2021

If this is about the work of the npm publish itself I am happy to do it of you add me to the package.

@olebedev
Copy link

olebedev commented Apr 1, 2021

That would be great to get it in, @jonschlinkert

@joshua-leyshon-canva
Copy link

Nice fix @joscha hope it gets merged soon.

@banyudu
Copy link
Author

banyudu commented Apr 2, 2021

+1

@brotherkaif
Copy link

Any updates on this? It would be great to get this merged in!

@slikts
Copy link

slikts commented Oct 26, 2021

It's probably a worthwhile idea to publish a fork if this package is abandoned.

@joscha
Copy link

joscha commented Nov 11, 2021

I published the fixes for this via https://www.npmjs.com/package/@fork-of/git-branch

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

Successfully merging a pull request may close this issue.

7 participants