diff --git a/deps/pygost-5.12/dist/pygost-5.12-py3.11.egg b/deps/pygost-5.12/dist/pygost-5.12-py3.11.egg index e009341..34b83d7 100644 Binary files a/deps/pygost-5.12/dist/pygost-5.12-py3.11.egg and b/deps/pygost-5.12/dist/pygost-5.12-py3.11.egg differ diff --git a/main.py b/main.py index ff75e8c..242ab03 100644 --- a/main.py +++ b/main.py @@ -570,14 +570,17 @@ def apply_commits(params, files, url): repl = req.find('replication') scheme = repl.get('scheme') commit = repl.get('id') - branch, new_scheme = get_branch(params['from'].replace('tcp://', ''), scheme) + bnd = params['from'].replace('tcp://', '') + branch, new_scheme = get_branch(bnd, scheme) if new_scheme: scheme = new_scheme - if branch: - logging.warning(branch) con = OOConnectionParams(scheme, Config.oodb_host, Config.oodb_port, Config.oodb_dbname, Config.oodb_username, Config.oodb_passwd, scheme) ws = OODBWorkspace.ws(scheme) + ws.setCurrentUser(bnd) + if branch: + logging.warning(branch) + ws.switchBranch(branch) if not ws.isInit(): res = ws.init(con) logger.warning(res)