| Index: gclient_scm.py
|
| diff --git a/gclient_scm.py b/gclient_scm.py
|
| index 83955c6973bfbb55a5935fc7a22bd82b285e3288..9881c074f2d572933a957afb332070f74ce649b8 100644
|
| --- a/gclient_scm.py
|
| +++ b/gclient_scm.py
|
| @@ -355,8 +355,11 @@ class GitWrapper(SCMWrapper):
|
| if verbose:
|
| print('Trying fast-forward merge to branch : %s' % upstream_branch)
|
| try:
|
| - merge_output = scm.GIT.Capture(['merge', '--ff-only', upstream_branch],
|
| - cwd=self.checkout_path)
|
| + merge_args = ['merge']
|
| + if not options.merge:
|
| + merge_args.append('--ff-only')
|
| + merge_args.append(upstream_branch)
|
| + merge_output = scm.GIT.Capture(merge_args, cwd=self.checkout_path)
|
| except gclient_utils.CheckCallError, e:
|
| if re.match('fatal: Not possible to fast-forward, aborting.', e.stderr):
|
| if not printed_path:
|
|
|