Skip to content

Commit

Permalink
Attempt to pull "master" before blacklist branch creation
Browse files Browse the repository at this point in the history
If the pull fails, we'll hit the standard "Not at HEAD" error case.  If it succeeds, we won't break anything.
  • Loading branch information
teward committed Dec 28, 2016
1 parent 790e831 commit eb7e510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitmanager.py
Expand Up @@ -31,6 +31,10 @@ def add_to_blacklist(self, **kwargs):
return (False, "Invalid blacklist type specified, something has broken badly!")

git.checkout("master")
try:
git.pull()
except:
pass

# Check that we're up-to-date with origin (GitHub)
git.remote.update()
Expand Down

0 comments on commit eb7e510

Please sign in to comment.