Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bfabio
Copy link
Collaborator

@bfabio bfabio commented Mar 11, 2022

GetRawRoot() failed to return the correct root when passed GitHub
URLs ending with .git (eg. https://github.com/foo/bar.git), which
are supposed to be equivalent to the same URL without ".git".

That was disguised by the fact that GetRepo() erroneously stripped
the ".git" suffix from the passed URL and made it work when called
before GetRawRoot() with the same argument.

@bfabio bfabio requested a review from alranel March 11, 2022 12:08
@bfabio
Copy link
Collaborator Author

bfabio commented Mar 11, 2022

cc @sebbalex

(test are failing for an unrelated issue even if the same code passed before https://github.com/alranel/go-vcsurl/actions, gonna check that fixed in #12)

GetRawRoot() failed to return the correct root when passed GitHub
URLs ending with .git (eg. https://github.com/foo/bar.git), which
are supposed to be equivalent to the same URL without ".git".

That was disguised by the fact that GetRepo() erroneously stripped
the ".git" suffix from the passed URL and made it work when called
before GetRawRoot() with the same argument.
@bfabio bfabio merged commit 24c0b5f into alranel:master Mar 12, 2022
@bfabio bfabio deleted the fix/git-suffix branch June 30, 2023 18:30
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 this pull request may close these issues.

1 participant