Skip to content

stg: filter out existing Patchwork-Id from patch before import #14

Description

@kvalo

If a patch already has a Patchwork-Id (for example I have done that multiple times when picking patches from the pending branch and resubmitting them) pwcli adds a second one in the bottom:

Signed-off-by: Alice <alice@example.com>
Patchwork-Id: 1111
Signed-off-by: Bob <bob@example.com>
Patchwork-Id: 2222

But when pwcli reads the id from pending branch it uses the first id, which is the incorrect one.

One possible solution is to remove all lines which we start with "Patchwork-Id:". Another possibility is to reject the patch. Don't know what's the best.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions