mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-02 09:35:47 +01:00
Load global UI confguration
Since 4.1 there's a separate function for that. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -401,7 +401,11 @@ def updatebookmarks(repo, peer):
|
||||
def get_repo(url, alias):
|
||||
global peer
|
||||
|
||||
myui = ui.ui()
|
||||
if check_version(4, 1):
|
||||
myui = ui.ui.load()
|
||||
else:
|
||||
myui = ui.ui()
|
||||
|
||||
myui.setconfig('ui', 'interactive', 'off')
|
||||
myui.fout = sys.stderr
|
||||
|
||||
|
Reference in New Issue
Block a user