chiark / gitweb /
Some clean-up of the branch manipulation commands
[stgit] / stgit / stack.py
index 3139822680d10f8791dcc7e51e1ce2930bb199ce..f1f75e49802ef0181597349e2aadb20d9cf03f8a 100644 (file)
@@ -753,10 +753,10 @@ class Series(PatchSet):
                 raise StackException('Series directory %s is not empty'
                                      % self._dir())
 
-            try:
-                git.delete_branch(self.get_name())
-            except GitException:
-                out.warn('Could not delete branch "%s"' % self.get_name())
+        try:
+            git.delete_branch(self.get_name())
+        except GitException:
+            out.warn('Could not delete branch "%s"' % self.get_name())
 
         config.remove_section('branch.%s' % self.get_name())
         config.remove_section('branch.%s.stgit' % self.get_name())