diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-02-03 21:07:07 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-02-03 21:07:07 +0100 |
commit | 4c171bf0e82c15437317cebda4008aacd944c36e (patch) | |
tree | 3e1707913a267adedf72ba928dbf3a149c14aa25 | |
parent | 000c5eb8fb13049922bebbb1e116d58b7f739928 (diff) |
Ignore files in root directory.
-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) |