diff --git a/project.py b/project.py index 4c8c2bab..a58af4ff 100644 --- a/project.py +++ b/project.py @@ -2681,8 +2681,10 @@ class Project(object): if self._allrefs: raise GitError('%s checkout %s ' % (self.name, rev)) - def _CherryPick(self, rev): + def _CherryPick(self, rev, ffonly=False): cmd = ['cherry-pick'] + if ffonly: + cmd.append('--ff') cmd.append(rev) cmd.append('--') if GitCommand(self, cmd).Wait() != 0: diff --git a/subcmds/download.py b/subcmds/download.py index 87d0ce04..12d99526 100644 --- a/subcmds/download.py +++ b/subcmds/download.py @@ -101,7 +101,7 @@ If no project is specified try to use current directory as a project. print(' %s' % (c), file=sys.stderr) if opt.cherrypick: try: - project._CherryPick(dl.commit) + project._CherryPick(dl.commit, ffonly=opt.ffonly) except GitError: print('[%s] Could not complete the cherry-pick of %s' % (project.name, dl.commit), file=sys.stderr)