chiark / gitweb /
Fix the automatic patch name generation for the pick command
authorCatalin Marinas <catalin.marinas@gmail.com>
Tue, 22 May 2007 20:45:53 +0000 (21:45 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 22 May 2007 20:46:11 +0000 (21:46 +0100)
It was broken by a recent commit to unify the patch name generation.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/pick.py

index a47b201c2936fe4ae93c9b8748ccecbfab315935..20ecd02ae719d1f559c4517a9b7bc7bff454f2b5 100644 (file)
@@ -121,6 +121,9 @@ def func(parser, options, args):
                                         author_name = author_name,
                                         author_email = author_email,
                                         author_date = author_date)
+        # in case the patch name was automatically generated
+        patchname = newpatch.get_name()
+
         # find a patchlog to fork from
         (refpatchname, refbranchname, refpatchid) = parse_rev(commit_str)
         if refpatchname and not refpatchid and \