| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks so much for contributing this capability!
I really like the implementation, and love that there are tests as well.
To my mind these tests cover the most important cases.
Good to merge!
Sorry, something went wrong.
|
|
||
| elif keyword == "hasconfig:remote.*.url": | ||
| for remote in self._repo.remotes: | ||
| if fnmatch.fnmatchcase(remote.url, value): |
There was a problem hiding this comment.
Using a case-sensitive search is correct here, Git does the same.
Sorry, something went wrong.
|
|
||
| # Ensure that config with hasconfig and incorrect url is incorrect. | ||
| with open(path1, "w") as stream: | ||
| stream.write(template.format("incorrect", path2)) |
There was a problem hiding this comment.
I think that "incorrect" fails to communicate that this is a URL that simply doesn't match.
Maybe something for a follow-up.
Sorry, something went wrong.
|
Oh, such speed, thanks for the quick response! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Support adding custom paths for the following git config:
According to the documentation:
So I have matched the condition exactly word to word with hasconfig:remote.*.url. I then go over the list of remotes and find using fnmatchcase the correct remote (not sure if fnmatch.
Maybe a list of open points here:
Closes #2017