| Index: gclient_scm.py
|
| diff --git a/gclient_scm.py b/gclient_scm.py
|
| index 69dec5003aac8e649bd4e78660991fbce17c6b40..a73275572c22d835c0a783980a133b5b0296007c 100644
|
| --- a/gclient_scm.py
|
| +++ b/gclient_scm.py
|
| @@ -592,15 +592,16 @@ class GitWrapper(SCMWrapper):
|
| self.Print('_____ %s%s' % (self.relpath, rev_str), timestamp=False)
|
| printed_path = True
|
| while True:
|
| - try:
|
| - action = self._AskForData(
|
| - 'Cannot %s, attempt to rebase? '
|
| - '(y)es / (q)uit / (s)kip : ' %
|
| - ('merge' if options.merge else 'fast-forward merge'),
|
| - options)
|
| - except ValueError:
|
| - raise gclient_utils.Error('Invalid Character')
|
| - if re.match(r'yes|y', action, re.I):
|
| + if not options.auto_rebase:
|
| + try:
|
| + action = self._AskForData(
|
| + 'Cannot %s, attempt to rebase? '
|
| + '(y)es / (q)uit / (s)kip : ' %
|
| + ('merge' if options.merge else 'fast-forward merge'),
|
| + options)
|
| + except ValueError:
|
| + raise gclient_utils.Error('Invalid Character')
|
| + if options.auto_rebase or re.match(r'yes|y', action, re.I):
|
| self._AttemptRebase(upstream_branch, files, options,
|
| printed_path=printed_path, merge=False)
|
| printed_path = True
|
|
|