mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user