X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/f9a2b5dae96b05071105a9b84e98bcc8942960ed..b839b1cf42be33947adb87d6a2ae2164aad2371e:/stgit/commands/pick.py?ds=sidebyside diff --git a/stgit/commands/pick.py b/stgit/commands/pick.py index f8f3577..996e789 100644 --- a/stgit/commands/pick.py +++ b/stgit/commands/pick.py @@ -71,9 +71,7 @@ def func(parser, options, args): elif len(patch_branch) == 2: patch = patch_branch[0] else: - patch = make_patch_name(commit.get_log()) - if not patch: - raise CmdException, 'Unknown patch name' + patch = make_patch_name(commit.get_log(), crt_series.patch_exists) if options.parent: parent = git_id(options.parent)