Skip to content

Commit

Permalink
[webservice] Can switch branches
Browse files Browse the repository at this point in the history
  • Loading branch information
sshirokov authored and sbryant committed Nov 26, 2010
1 parent 2f86986 commit 44defa4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gogogo/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def get_board(self, branch=None):

def set_branch(self, new):
if 'refs/heads/%s' % new in self.repo.get_refs().keys():
self.branch = new
self.repo.set_symbolic_ref('refs/heads/%s' % self.branch)
self.repo.refs.set_symbolic_ref('HEAD', 'refs/heads/%s' % new)
return self.branch
return False

Expand Down

0 comments on commit 44defa4

Please sign in to comment.