summaryrefslogtreecommitdiff
path: root/gitnoti.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitnoti.py')
-rwxr-xr-xgitnoti.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitnoti.py b/gitnoti.py
index a8071c4..419587b 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -72,6 +72,7 @@ class NotifyRepo(object):
newheads = set([h.name for h in self.repo.heads])
removed_heads = oldheads.difference(newheads)
for h in removed_heads:
+ del self.heads[h]
self.bot.gitmsg('Branch \002%s\002 from repo \002%s\002 was deleted.' %
(h, reponame))