scripts/sequence-patch.sh: fix generated series with a limit patch
authorDavid Sterba <dsterba@suse.cz>
Wed, 5 Dec 2012 13:57:02 +0000 (14:57 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 5 Dec 2012 14:06:32 +0000 (15:06 +0100)
commit9bef399feee0a4ab0e635ea276e3df53174a0077
treeceebdb14b853b8e817ab5507a4c50cdcbcc1eb88
parent0719c35274feba145d4a27957f93b194bce01b95
scripts/sequence-patch.sh: fix generated series with a limit patch

When a limit patch is given, the resulting series file does not contain
the right patch list.

Reproducible by:

./scripts/sequence-patch.sh -d dir patches.kernel.org/patch-3.0.2-3

dir/series:
patches.kernel.org/patch-3.0.1
patches.kernel.org/patch-3.0.1-2
patches.kernel.org/patch-3.0.2-3
patches.kernel.org/patch-3.0.1
patches.kernel.org/patch-3.0.4-5
patches.kernel.org/patch-3.0.5-6

where 3.0.1 should really be 3.0.3-4.

Signed-off-by: David Sterba <dsterba@suse.cz>
scripts/sequence-patch.sh