Expose current user to hooks as environment variable GITOSIS_USER
This commit is contained in:
parent
2d971ca95c
commit
678f196311
1 changed files with 1 additions and 0 deletions
|
@ -200,6 +200,7 @@ class Main(app.App):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
main_log.debug('Serving %s', newcmd)
|
main_log.debug('Serving %s', newcmd)
|
||||||
|
os.environ['GITOSIS_USER'] = user
|
||||||
os.execvp('git', ['git', 'shell', '-c', newcmd])
|
os.execvp('git', ['git', 'shell', '-c', newcmd])
|
||||||
main_log.error('Cannot execute git-shell.')
|
main_log.error('Cannot execute git-shell.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue