X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/6c4e4b6848f4d68aaeebbca4cbd0f544413c8dc1..06dbe79199c668308befef3539a64d2242c861c1:/stgit/stack.py diff --git a/stgit/stack.py b/stgit/stack.py index dc7c19f..bc5915e 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -635,6 +635,9 @@ class Series: forwarded+=1 unapplied.remove(name) + if forwarded == 0: + return 0 + git.switch(top) append_strings(self.__applied_file, names[0:forwarded])