Skip to content
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

custom server url with git protocol broken? #22

Closed
davidszotten opened this issue Jun 2, 2024 · 5 comments
Closed

custom server url with git protocol broken? #22

davidszotten opened this issue Jun 2, 2024 · 5 comments

Comments

@davidszotten
Copy link

Hi,

thanks for a cool tool!

i'm trying to use it with a custom github url that's using the git protocol, but it's not working, i think due to the slash after the server url at

rf"(?:{re.escape(server_url)}/|git@github.com:)([^/]+/[^/]+?)(?:\.git|/)?",

rf"(?:{re.escape(server_url)}/|git@github.com:)
                             ^
                           here

did you intentionally not add a test suite to this lib? i guess most of it is about side-effects which are hard to test, though it might be handy for the data finagling bits like extracting owner / repo name from repo urls + github server

@nedbat
Copy link
Owner

nedbat commented Jun 2, 2024

Can you show the URL you are using? (I didn't know you could have custom GitHub urls?)

About the non-test-suite: yes, mostly this code is hard to test, but also I just slapped this together and it grew... :(

@davidszotten
Copy link
Author

sorry i should have said GITHUB_SERVER_URL

in my case git@git.mydomain.com (repo url is git@git.mydomain.com:username/repo)

@nedbat
Copy link
Owner

nedbat commented Jun 23, 2024

Fixed in commit a87b77f (and a start on a test suite in 466eccb).

@nedbat nedbat closed this as completed Jun 23, 2024
@nedbat
Copy link
Owner

nedbat commented Jun 23, 2024

This is now released as part of watchgha 2.3.2.

@davidszotten
Copy link
Author

thanks! ✨

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

No branches or pull requests

2 participants