mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 01:02:19 +00:00
Git username and email configuration
This commit is contained in:
parent
29ac49c959
commit
eb92ee16b0
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@ 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['user.email'] ='bazarr@fakeuser.com'
|
||||
|
||||
for remote in repo.remotes:
|
||||
if remote.name == remote_name:
|
||||
remote.fetch()
|
||||
|
|
Loading…
Reference in a new issue