Commit 2714b149 authored by Rob Nelson's avatar Rob Nelson
Browse files

Rebuild repo if branch is incorrect.

parent 50eb9f99
......@@ -139,9 +139,8 @@ class BandagedBetterDiscordAddon(Addon):
repo.reset(repo.revparse_single('FETCH_HEAD').oid, pygit2.GIT_RESET_HARD)
if repo.head.shorthand != BBD_REPO_BRANCH:
log.warning('Incorrect branch %r. Checking out %r...', repo.head.shorthand, BBD_REPO_BRANCH)
branch = repo.branches.remote['origin/'+BBD_REPO_BRANCH]
ref = repo.lookup_reference(
return repo
def bdc_update(self) -> bool:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment