git_dir check removed

This commit is contained in:
Jakobus Schürz 2019-08-02 01:49:16 +02:00
parent e6691d2c49
commit a96ad0df9d

View file

@ -48,10 +48,6 @@ class Main(app.App):
log = logging.getLogger('gitosis.principals') log = logging.getLogger('gitosis.principals')
if git_dir is None:
log.error('Must have GIT_DIR set in enviroment')
sys.exit(1)
if sshUser != "": if sshUser != "":
log.info('Running serve_principal for user %s', sshUser) log.info('Running serve_principal for user %s', sshUser)
serve_principal(cfg, sshUser, principals) serve_principal(cfg, sshUser, principals)