command: Should not consume 'print' to output default remote info (#6650)

1. should not consume 'print' to output default remote info,
   otherwise the --quiet would not work.

Co-authored-by: Zhenyu Gao <[email protected]>
This commit is contained in:
eggqq007
2021-10-06 09:27:47 +05:45
committed by GitHub
co-authored by Zhenyu Gao
parent 9c300a0a1c
commit 1eb89a2dc0
+1 -1
View File
@@ -86,7 +86,7 @@ class CmdRemoteDefault(CmdRemote):
if self.args.name is None and not self.args.unset:
conf = self.config.read(self.args.level)
try:
print(conf["core"]["remote"])
ui.write(conf["core"]["remote"])
except KeyError:
ui.write("No default remote set")
return 1