-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Does not work when branch name contains a '/' #16
Comments
same problem on GitHub too url tested with: https://github.com/cheran-senthil/PyRival/blob/feat/lazy-segment-tree-custom-add/pyrival/algebra/chinese_remainder.py#L16 |
Do you know how many |
I think we currently have three options First Option: List branches of the repoAPI to do this on GitHub: https://docs.github.com/en/rest/reference/repos#list-branches Second Option: Manually construct raw urlIn GitHub raw urls are of the form: Since here Note: It will be hard to support private repos with this method Third Option: Trying all branch/file-path pairsLike you said this option is quite inefficient IMO the first option is probably the most elegant I can create PR for the first option if you want. |
It would be really great if you create a PR 😃 Could you maybe also add a test for this case? |
url tested with: https://gitlab.com/Mukundan314/test/-/blob/test/test/test.txt#L2
The text was updated successfully, but these errors were encountered: