Permalink
Browse files

git.Repo.reset fix

  • Loading branch information...
1 parent 6af64b0 commit 5366699381c526a788f81a36d25cae9a87156197 @abstrakraft committed Mar 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 rug/git.py
View
@@ -365,11 +365,11 @@ def checkout(self, branch, force=False):
def reset(self, branch, mode=None):
args = ['reset']
if mode is not None:
- if mode == 0:
+ if mode == self.SOFT:
args.append('--soft')
- elif mode == 1:
+ elif mode == self.MIXED:
args.append('--mixed')
- elif mode == 2:
+ elif mode == self.HARD:
args.append('--hard')
else:
#TODO: error

0 comments on commit 5366699

Please sign in to comment.