diff options
Diffstat (limited to 'gitnoti.py')
-rwxr-xr-x | gitnoti.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |