X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/c920531e512b1776d3698fd05755f8791b3be831..d08865a64841c43ce6730baf7078500233976d32:/stgit/main.py diff --git a/stgit/main.py b/stgit/main.py index d93f2eb..ebbff64 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -363,9 +363,10 @@ def delete(parser, options, args): if len(args) != 1: parser.error('incorrect number of arguments') - __check_local_changes() - __check_conflicts() - __check_head_top_equal() + if args[0] == crt_series.get_current(): + __check_local_changes() + __check_conflicts() + __check_head_top_equal() crt_series.delete_patch(args[0]) print 'Patch "%s" successfully deleted' % args[0]