-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Checkout does not work when the server is configured with a sub-path #1370
Comments
Hello i came to the same conclusion as you. and that pretty sad, do you have found a workaround ? |
tag on a fork with a fix https://github.com/RouxAntoine/checkout/tree/v3.5.4 |
Thanks for reporting & the proposed fix. I can confirm your patch fixed the bug for me. Looking forward to seeing it get merged 🤞 |
Your welcome, I hope too, however I am afraid of the number of issues and pull request on a so used and so small action. |
I believe this issue is a dulplicate #1242 |
indeed it seems, I close mine 🙂, moreover I am not totaly sure that the regex parsing is necessary
|
|
not totally sure, but if yes, so :
My point is here is no reason to parse |
This repository is a clone of Gitea's Action Checkout with the sub-path fix: https://gitea.com/ScMi1/checkout |
Closing as duplicate of #1242, which we're not planning to support at this time. |
I have a Gitea server configured with sub-paths (e.g. htttp://example.com/path/to/git/owner/repository.git). Checkout attempts to checkout https://example.com/owner/repository.git and throws away the sub-path.
How to replicate:
actions/checkout
My best guess is that it's lost in https://github.com/actions/checkout/blob/f095bcc56b7c2baf48f3ac70d6d6782f4f553222/src/url-helper.ts#LL19C1-L19C1 as, according to the comment,
serviceUrl.origin
isSCHEME://HOSTNAME[:PORT]
The text was updated successfully, but these errors were encountered: