|
@@ -906,8 +906,8 @@ class GitWrapper(SCMWrapper):
|
|
merge_output = self._Capture(merge_args)
|
|
merge_output = self._Capture(merge_args)
|
|
except subprocess2.CalledProcessError as e:
|
|
except subprocess2.CalledProcessError as e:
|
|
rebase_files = []
|
|
rebase_files = []
|
|
- if re.match(b'fatal: Not possible to fast-forward, aborting.',
|
|
|
|
- e.stderr):
|
|
|
|
|
|
+ if re.search(b'fatal: Not possible to fast-forward, aborting.',
|
|
|
|
+ e.stderr):
|
|
if not printed_path:
|
|
if not printed_path:
|
|
self.Print('_____ %s at %s' % (self.relpath, revision),
|
|
self.Print('_____ %s at %s' % (self.relpath, revision),
|
|
timestamp=False)
|
|
timestamp=False)
|
|
@@ -1375,8 +1375,9 @@ class GitWrapper(SCMWrapper):
|
|
except subprocess2.CalledProcessError:
|
|
except subprocess2.CalledProcessError:
|
|
raise gclient_utils.Error('\n____ %s at %s\n'
|
|
raise gclient_utils.Error('\n____ %s at %s\n'
|
|
'\tYou have unstaged changes.\n'
|
|
'\tYou have unstaged changes.\n'
|
|
- '\tPlease commit, stash, or reset.\n'
|
|
|
|
- % (self.relpath, revision))
|
|
|
|
|
|
+ '\tcd into %s, run git status to see changes,\n'
|
|
|
|
+ '\tand commit, stash, or reset.\n' %
|
|
|
|
+ (self.relpath, revision, self.relpath))
|
|
try:
|
|
try:
|
|
scm.GIT.Capture(['diff-index', '--cached', '--name-status', '-r',
|
|
scm.GIT.Capture(['diff-index', '--cached', '--name-status', '-r',
|
|
'--ignore-submodules', 'HEAD', '--'],
|
|
'--ignore-submodules', 'HEAD', '--'],
|
|
@@ -1384,8 +1385,9 @@ class GitWrapper(SCMWrapper):
|
|
except subprocess2.CalledProcessError:
|
|
except subprocess2.CalledProcessError:
|
|
raise gclient_utils.Error('\n____ %s at %s\n'
|
|
raise gclient_utils.Error('\n____ %s at %s\n'
|
|
'\tYour index contains uncommitted changes\n'
|
|
'\tYour index contains uncommitted changes\n'
|
|
- '\tPlease commit, stash, or reset.\n'
|
|
|
|
- % (self.relpath, revision))
|
|
|
|
|
|
+ '\tcd into %s, run git status to see changes,\n'
|
|
|
|
+ '\tand commit, stash, or reset.\n' %
|
|
|
|
+ (self.relpath, revision, self.relpath))
|
|
|
|
|
|
def _CheckDetachedHead(self, revision, _options):
|
|
def _CheckDetachedHead(self, revision, _options):
|
|
# HEAD is detached. Make sure it is safe to move away from (i.e., it is
|
|
# HEAD is detached. Make sure it is safe to move away from (i.e., it is
|