예제 #1
0
def _set_remote_url_and_commit(repo, remote_url):
    rconfig = RemoteConfig(repo.config)
    rconfig.modify("upstream", "url", remote_url)
    repo.scm.add([repo.config.config_file])
    repo.scm.commit("modify remote")
예제 #2
0
 def __init__(self, args):
     super(CmdRemoteConfig, self).__init__(args)
     self.remote_config = RemoteConfig(self.config)