Skip to content

Handle root submission URLs #24

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

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Handle root submission URLs #24

merged 1 commit into from
Apr 29, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Apr 29, 2021

Previously, a submission URL with a root path resulted in a panic:

panic: Rel: can't make .git relative to /

These URLs won't represent a valid submission, but panics should only occur when the error should not occur under any normal circumstances. By avoiding the panic, the process will fail with the helpful error either that the URL is not under a supported Git host (e.g., https://mycoollibrary.com as submission), or that it is not a valid Git clone URL (e.g., https://github.com as submission).

Previously, a submission URL with a root path resulted in a panic:

panic: Rel: can't make .git relative to /

These URLs won't represent a valid submission, but panics should only occur when the error should not occur under any
normal circumstances. By avoiding the panic, the process will fail with the helpful error either that the URL is not
under a supported Git host (e.g., https://mycoollibrary.com as submission), or that it is not a valid Git clone URL
(e.g., https://github.com as submission).
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Apr 29, 2021
@per1234 per1234 requested review from silvanocerza and umbynos April 29, 2021 06:48
@per1234 per1234 merged commit a236281 into arduino:main Apr 29, 2021
@per1234 per1234 deleted the handle-root-submission-url branch April 29, 2021 08:35
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants