From eb92ee16b01400f34ca7a456b87f7a2cd6fcc26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 5 Dec 2017 14:21:19 -0500 Subject: [PATCH] Git username and email configuration --- check_update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_update.py b/check_update.py index ba62d394a..56557de2d 100644 --- a/check_update.py +++ b/check_update.py @@ -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()