summaryrefslogtreecommitdiff
path: root/gitnoti.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitnoti.py')
-rwxr-xr-xgitnoti.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitnoti.py b/gitnoti.py
index dfd79c3..5d5f186 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -185,7 +185,9 @@ class ReposNotifyEvent(pyinotify.ProcessEvent):
def process_IN_CREATE(self, event):
if os.path.dirname(event.pathname) == root:
- self.new_repo(event)
+ # Ignore files in root directory
+ if os.path.isdir(event.pathname):
+ self.new_repo(event)
else:
self.updated_repo(event)