diff --git a/pagure/lib/repo.py b/pagure/lib/repo.py index 6496b4e..1b77330 100644 --- a/pagure/lib/repo.py +++ b/pagure/lib/repo.py @@ -87,6 +87,10 @@ class PagureRepo(pygit2.Repository): env['GIT_DIR'] = self.path env['GL_USER'] = username + hookfile = os.path.join(self.path, 'hooks', 'post-receive') + if not os.path.exists(hookfile): + return + procs = subprocess.Popen( cmd, stdin=subprocess.PIPE,