diff --git a/check_update.py b/check_update.py index a7a75836b..501e6d869 100644 --- a/check_update.py +++ b/check_update.py @@ -14,7 +14,7 @@ def check_and_apply_update(repo=local_repo, remote_name='origin'): for remote in repo.remotes: if remote.name == remote_name: remote.fetch() - remote_id = repo.lookup_reference('refs/remotes/origin/' + branch).target + remote_id = repo.lookup_reference('refs/remotes/origin/' + str(branch)).target merge_result, _ = repo.merge_analysis(remote_id) # Up to date, do nothing if merge_result & pygit2.GIT_MERGE_ANALYSIS_UP_TO_DATE: