git/hooks: adjusts the post-receive hooks so it loads the correct fedora-messaging config
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
cef92fff61
commit
7acddaeca5
1 changed files with 5 additions and 0 deletions
|
@ -11,9 +11,14 @@ from collections import defaultdict
|
|||
|
||||
import pygit2
|
||||
|
||||
import fedora_messaging.config
|
||||
import fedora_messaging.api
|
||||
import fedora_messaging.exceptions
|
||||
|
||||
fedora_messaging.config.conf.load_config(
|
||||
'/etc/fedora-messaging/git-hooks-messaging.toml')
|
||||
|
||||
|
||||
# Use $GIT_DIR to determine where this repo is.
|
||||
abspath = os.path.abspath(os.environ['GIT_DIR'])
|
||||
if "/requests/" in abspath:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue