Skip to content

Commit 498bc45

Browse files
authored
Don't log the "git ls-remote" call when opening a PR (#5195)
When opening a PR, a "git ls-remote" call would appear in the Command log. This is confusing, it's an internal detail that is not interesting for the user to see.
2 parents 1a4af35 + 7f957f0 commit 498bc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/git_commands/remote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ func (self *RemoteCommands) GetRemoteURL(remoteName string) (string, error) {
8585
Arg("--get-url", remoteName).
8686
ToArgv()
8787

88-
url, err := self.cmd.New(cmdArgs).RunWithOutput()
88+
url, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()
8989
return strings.TrimSpace(url), err
9090
}

0 commit comments

Comments
 (0)