fixed logging when GIT_DIR is none
This commit is contained in:
parent
8fbf51be7a
commit
ea02faf354
1 changed files with 3 additions and 1 deletions
|
@ -66,10 +66,12 @@ class Main(app.App):
|
|||
os.umask(0022)
|
||||
|
||||
git_dir = os.environ.get('GIT_DIR')
|
||||
log.debug("GIT_DIR", git_dir)
|
||||
if git_dir is None:
|
||||
log.error('Must have GIT_DIR set in enviroment')
|
||||
sys.exit(1)
|
||||
else:
|
||||
log.debug("GIT_DIR", git_dir)
|
||||
|
||||
|
||||
if hook == 'post-update':
|
||||
log.info('Running hook %s', hook)
|
||||
|
|
Loading…
Reference in a new issue