X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/860d288db5f555a00a27a05bffd9b19fda154ccb..b839b1cf42be33947adb87d6a2ae2164aad2371e:/stgit/commands/uncommit.py diff --git a/stgit/commands/uncommit.py b/stgit/commands/uncommit.py index 45a2087..9798f19 100644 --- a/stgit/commands/uncommit.py +++ b/stgit/commands/uncommit.py @@ -97,9 +97,8 @@ def func(parser, options, args): if patchnames: patchname = patchnames[n] else: - patchname = make_patch_name(commit.get_log()) - if not patchname: - raise CmdException, 'Unknown patch name for commit %s' % commit_id + patchname = make_patch_name(commit.get_log(), + crt_series.patch_exists) crt_series.new_patch(patchname, can_edit = False, before_existing = True,