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.
This commit is contained in:
Stefan Haller 2026-01-11 20:04:54 +01:00 committed by GitHub
commit 498bc457fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,6 +85,6 @@ func (self *RemoteCommands) GetRemoteURL(remoteName string) (string, error) {
Arg("--get-url", remoteName).
ToArgv()
url, err := self.cmd.New(cmdArgs).RunWithOutput()
url, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()
return strings.TrimSpace(url), err
}