X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/d3cf7d862f3ef6e3d6994714163a847e2ecba8e5..c23e93ff42f19ab5b2ff5701bbccbedb15882941:/stgit/commands/clean.py diff --git a/stgit/commands/clean.py b/stgit/commands/clean.py index 3c2649b..baa4a54 100644 --- a/stgit/commands/clean.py +++ b/stgit/commands/clean.py @@ -65,7 +65,8 @@ def func(parser, options, args): if options.applied: applied = crt_series.get_applied() - crt_series.pop_patch(applied[0]) + if applied != []: + crt_series.pop_patch(applied[0]) __delete_empty(applied, True) if options.unapplied: