-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support '/' in branch names #179
Comments
Hey, I dug into this. There might be a way but I don't have the git internals knowledge to get it to work. So here is what is happening:
If you have the magic incantation needed to unshallow a checkout and pull in branches with slashes happy to fix it. To test this I set a branch
So one would probably have to check if the refs have slashes and then pull all the refs in that directory but this is beyond my git foo. |
Just in case someone wants to pick up where I left off https://github.com/metcalfc/changelog-generator/tree/slash_branch has the last patch I tried. |
Thanks for having a look! I took a stab at getting it to work as well and got it to work (sorta.. 😅 ) It can work with 2 gotchas:
See here for a succesful run. So to fix this we could maybe add a parameter to this action to enable fetching or not, sth like |
I'm good with the parameter to fetch or not. We can default fetch to true so it doesn't break existing users. You and others that want to use slash or other things can set fetch to false and everyone is off to the races. |
This issue has not had any activity in 30 days. Marking it stale. It will be closed in 14 days. |
Merged in #188 |
Hi there!
Wanted to try out your action. I set the head-ref to the current branch which has a
/
in it and got the following error:Would it be possible to support branch names with slashes? Thanks!
The text was updated successfully, but these errors were encountered: