Skip to content

Commit abed4b2

Browse files
committed
gitlab: pass --url arg to GitLab UI helpers
Pass the instance URL argument to the GitLab UI helper.
1 parent 18a64e0 commit abed4b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shared/GitLab/GitLabAuthentication.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public async Task<AuthenticationPromptResult> GetAuthenticationAsync(Uri targetU
7676
cmdArgs.AppendFormat(" --username {0}", QuoteCmdArg(userName));
7777
}
7878

79+
cmdArgs.AppendFormat(" --url {0}", QuoteCmdArg(targetUri.ToString()));
80+
7981
if ((modes & AuthenticationModes.Basic) != 0) cmdArgs.Append(" --basic");
8082
if ((modes & AuthenticationModes.Browser) != 0) cmdArgs.Append(" --browser");
8183
if ((modes & AuthenticationModes.Pat) != 0) cmdArgs.Append(" --pat");

0 commit comments

Comments
 (0)