mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 16:52:06 +00:00
Git extend scope to all branch
This commit is contained in:
parent
eb92ee16b0
commit
645b58f08e
1 changed files with 4 additions and 2 deletions
|
@ -8,9 +8,11 @@ repository_path = pygit2.discover_repository(current_working_directory)
|
|||
local_repo = pygit2.Repository(repository_path)
|
||||
|
||||
def check_and_apply_update(repo=local_repo, remote_name='origin'):
|
||||
repo.config['user.name'] = 'Bazarr user'
|
||||
repo.config['remote.origin.fetch'] = '+refs/heads/*:refs/remotes/origin/*'
|
||||
repo.remote.update()
|
||||
repo.config['user.name'] = 'Bazarr user'
|
||||
repo.config['user.email'] ='bazarr@fakeuser.com'
|
||||
|
||||
|
||||
for remote in repo.remotes:
|
||||
if remote.name == remote_name:
|
||||
remote.fetch()
|
||||
|
|
Loading…
Reference in a new issue