Stashing is also an option when copy is dirty for upload

BUG=

Review-Url: https://codereview.chromium.org/2019223002
changes/90/365990/1
techtonik 9 years ago committed by Commit bot
parent f268b50a81
commit bf2a34198e

@ -750,7 +750,8 @@ def get_dirty_files():
def is_dirty_git_tree(cmd): def is_dirty_git_tree(cmd):
dirty = get_dirty_files() dirty = get_dirty_files()
if dirty: if dirty:
print 'Cannot %s with a dirty tree. You must commit locally first.' % cmd print 'Cannot %s with a dirty tree. '\
'Commit, freeze or stash your changes first.' % cmd
print 'Uncommitted files: (git diff-index --name-status HEAD)' print 'Uncommitted files: (git diff-index --name-status HEAD)'
print dirty[:4096] print dirty[:4096]
if len(dirty) > 4096: # pragma: no cover if len(dirty) > 4096: # pragma: no cover

Loading…
Cancel
Save