From: Bryan Larsen Date: Thu, 14 Jul 2005 06:27:56 GMT Subject: [PATCH] stgit: export without --range does not export the last patch Message-ID: <20050714062744.21779.87923.sendpatchset@bryan-larsens-ibook-g4.local> In-Reply-To: <20050714062733.21779.33599.sendpatchset@bryan-larsens-ibook-g4.local> The top patch is never exported. Signed-off-by: Bryan Larsen --- stgit/commands/export.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/stgit/commands/export.py b/stgit/commands/export.py --- a/stgit/commands/export.py +++ b/stgit/commands/export.py @@ -90,7 +90,7 @@ def func(parser, options, args): raise MainException, 'Incorrect patch range order' else: start_idx = 0 - stop_idx = -1 + stop_idx = len(applied) patches = applied[start_idx:stop_idx]