1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00

Git fetch new branch

This commit is contained in:
Louis Vézina 2017-12-05 15:29:41 -05:00
parent 645b58f08e
commit 33ac660e24

View file

@ -9,7 +9,7 @@ local_repo = pygit2.Repository(repository_path)
def check_and_apply_update(repo=local_repo, remote_name='origin'): def check_and_apply_update(repo=local_repo, remote_name='origin'):
repo.config['remote.origin.fetch'] = '+refs/heads/*:refs/remotes/origin/*' repo.config['remote.origin.fetch'] = '+refs/heads/*:refs/remotes/origin/*'
repo.remote.update() repo.remotes[remote_name].fetch()
repo.config['user.name'] = 'Bazarr user' repo.config['user.name'] = 'Bazarr user'
repo.config['user.email'] ='bazarr@fakeuser.com' repo.config['user.email'] ='bazarr@fakeuser.com'