X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/592c8fc3320e45cee37adfa239eae857e4326661..a322940ba66cfb047676ad41a9ca1636d08c6d41:/stgit/stack.py diff --git a/stgit/stack.py b/stgit/stack.py index 71f038d..ef7e3f6 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -481,11 +481,13 @@ class Series: self.__set_current(name) - if not ex: - # if the merge was OK and no conflicts, just refresh the patch - self.refresh_patch() - else: - raise StackException, str(ex) + # head == bottom case doesn't need to refresh the patch + if head != bottom: + if not ex: + # if the merge was OK and no conflicts, just refresh the patch + self.refresh_patch() + else: + raise StackException, str(ex) def undo_push(self): name = self.get_current()