-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bugfix script option {sRemotePathFromUrl} #6573
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jeroendv, could you test the canary build 5886, please? |
e2a509c
to
f7004eb
Compare
RussKie
reviewed
May 16, 2019
I can confirm that the bug is fixed. |
Thank you. |
I don't expect test for the whole parser (unless you want to). Just for the
immediate change.
Thank you
…On Sun, May 19, 2019, 9:02 AM Michael Seibt ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In GitUI/Script/ScriptOptionsParser.cs
<#6573 (comment)>
:
> @@ -349,7 +349,8 @@ private static string ParseScriptArguments(string argument, string option, IWin3
remote = selectedRemotes.Count == 1
? selectedRemotes[0]
: AskToSpecify(selectedRemotes, revisionGrid);
- newString = module.GetSetting(string.Format(SettingKeyString.RemoteUrl, remote));
+ url = module.GetSetting(string.Format(SettingKeyString.RemoteUrl, remote));
+ newString = GetRemotePath(url);
I'll add some tests but not for every script option. (We should have asked
for tests before the ScriptOptionParser was refactored. This is at least
the second bug caused by this refactoring.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6573?email_source=notifications&email_token=ABBTEXVJN2D6T26QNSQAOZDPWCDJXA5CNFSM4HNHRTO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZBCH6Y#discussion_r285358669>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBTEXU45FPZMBDJOMD5EQ3PWCDJXANCNFSM4HNHRTOQ>
.
|
f7004eb
to
80bcaf2
Compare
Codecov Report
@@ Coverage Diff @@
## master #6573 +/- ##
==========================================
+ Coverage 47.06% 47.23% +0.16%
==========================================
Files 698 698
Lines 52636 52670 +34
Branches 6942 6942
==========================================
+ Hits 24774 24879 +105
+ Misses 26544 26450 -94
- Partials 1318 1341 +23
|
RussKie
approved these changes
May 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6567
Proposed changes
Test methodology
✒️ I contribute this code under The Developer Certificate of Origin.