The patch pushing with was losing the undo information because the arguments
passed to refresh_patch. The backup argument now defaults to True since
this is needed in most of the cases.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
git.apply_patch(diff = diff)
crt_series.refresh_patch(edit = options.edit,
show_patch = options.showpatch,
git.apply_patch(diff = diff)
crt_series.refresh_patch(edit = options.edit,
show_patch = options.showpatch,
- sign_str = options.sign_str)
+ sign_str = options.sign_str,
+ backup = False)
out.done()
def __import_file(filename, options, patch = None):
out.done()
def __import_file(filename, options, patch = None):
author_name = None, author_email = None,
author_date = None,
committer_name = None, committer_email = None,
author_name = None, author_email = None,
author_date = None,
committer_name = None, committer_email = None,
- backup = False, sign_str = None, log = 'refresh',
+ backup = True, sign_str = None, log = 'refresh',
notes = None, bottom = None):
"""Generates a new commit for the topmost patch
"""
notes = None, bottom = None):
"""Generates a new commit for the topmost patch
"""
+test_expect_success \
+ 'Check the push after undo fails as well' \
+ '
+ ! stg push bar
+ '
+