We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8162b3a commit 1c96503Copy full SHA for 1c96503
GerritUtil.cs
@@ -24,7 +24,14 @@ public static async Task<string> RunGerritCommandAsync([NotNull] IWin32Window ow
24
25
public static Uri GetFetchUrl(IGitModule module, string remote)
26
{
27
- string remotes = module.RunGitCmd("remote show -n \"" + remote + "\"");
+ var args = new GitArgumentBuilder("remote")
28
+ {
29
+ "show",
30
+ "-n",
31
+ remote.QuoteNE()
32
+ };
33
+
34
+ string remotes = module.RunGitCmd(args);
35
36
string fetchUrlLine = remotes.Split('\n').Select(p => p.Trim()).First(p => p.StartsWith("Push"));
37
0 commit comments