Where comes GIT_DIR from?

This commit is contained in:
Jakobus Schürz 2019-08-02 01:36:36 +02:00
parent 490c089f1e
commit ca4479cdc0
2 changed files with 1 additions and 0 deletions

BIN
gitosis/.init.py.swp Normal file

Binary file not shown.

View file

@ -72,6 +72,7 @@ class Main(app.App):
os.umask(0022) os.umask(0022)
git_dir = os.environ.get('GIT_DIR') git_dir = os.environ.get('GIT_DIR')
log.debug("GIT_DIR", git_dir)
if git_dir is None: if git_dir is None:
log.error('Must have GIT_DIR set in enviroment') log.error('Must have GIT_DIR set in enviroment')
sys.exit(1) sys.exit(1)