Skip to content

Commit

Permalink
Merge pull request #241 from glehmann/ff_only
Browse files Browse the repository at this point in the history
properly deal with ff-only
  • Loading branch information
weakish committed Nov 12, 2018
2 parents 350b871 + daf8b8f commit f3380e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions legit/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def smart_merge(self, branch, allow_rebase=True):
else:
verb = 'merge'

if self.pull_ff_only():
if verb != 'rebase' and self.pull_ff_only():
return self.git_exec([verb, '--ff-only', branch])
else:
try:
Expand All @@ -177,7 +177,7 @@ def pull_rebase(self):
def pull_ff_only(self):
reader = self.repo.config_reader()
if reader.has_option('pull', 'ff'):
if reader.getboolean('pull', 'ff') == 'only':
if reader.get('pull', 'ff') == 'only':
return True
else:
return False
Expand Down

0 comments on commit f3380e1

Please sign in to comment.