-
Notifications
You must be signed in to change notification settings - Fork 150
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
fix: fix issue with retrieving repository URL #291
base: main
Are you sure you want to change the base?
Conversation
We will definitely want a regression test on this one. |
Hi, @wraithgar |
@marshallku yes. The fact that tests didn't fail w/ this bug means the tests are lacking here. We need some test that would fail w/ the old code but succeed w/ the new code. |
It may be as simple as an assertion in an existing test that wasn't looking at the affected attributes. I haven't dug in to be sure. |
aafd76c
to
fa827d2
Compare
@wraithgar I add test case for retriving URL of remote repository. |
We don't need to hard code it, but the test should probably be doing the same thing that the code itself is doing, namely looking in the git config file to find the right value. We'll have to hope that file is present in CI. We've had tests in the past that were coupled to the actual ETA: Yep, tests fail in CI cause the remote is subtly different than you have locally. We'll want to use a tap testdir here so we can control what goes into that file. |
Thanks for leading @wraithgar. |
Hi @wraithgar I wanted to kindly remind you about the pull request I submitted. Your feedback is highly valuable, and I’d appreciate it if you could take some time to review it. |
In #186, there was breaking change in retrieving repository URL from
.git/config
.Although the split lines were assigned to
lines
, the code still accessedgconf
to get the file lines, causing the repository field to never auto-complete.References