From 33ac660e244a5446eb94c3506cd80750e295ef96 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 15:29:41 -0500 Subject: [PATCH] Git fetch new branch --- check_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_update.py b/check_update.py index efc3e432a..99cf747a3 100644 --- a/check_update.py +++ b/check_update.py @@ -9,7 +9,7 @@ local_repo = pygit2.Repository(repository_path) def check_and_apply_update(repo=local_repo, remote_name='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.email'] ='bazarr@fakeuser.com'