Issue #148: error in hook during the `git push` via SSH (conservancy/kallithea)

Oleg Pivovarov issues-reply at bitbucket.org
Thu Jul 23 11:36:11 UTC 2015


New issue 148: error in hook during the `git push` via SSH
https://bitbucket.org/conservancy/kallithea/issues/148/error-in-hook-during-the-git-push-via-ssh

Oleg Pivovarov:

I deployed the Kallithea, and clone the bare git repository. 
During the "git push", I get an error:
> git push origin master
Enter passphrase for key '/home/r2d2/.ssh/id_rsa': 
Counting objects: 3, done.
Writing objects: 100% (3/3), 184 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/pre-receive", line 34, in <module>
remote:     main()
remote:   File "hooks/pre-receive", line 30, in main
remote:     _handler(repo_path, push_data, os.environ)
remote:   File "/srv/www/htdocs/Kallithea-0.2.1/kallithea/lib/hooks.py", line 373, in <lambda>
remote:     handle_git_receive(repo_path, revs, env, hook_type='pre'))
remote:   File "/srv/www/htdocs/Kallithea-0.2.1/kallithea/lib/hooks.py", line 396, in handle_git_receive
remote:     extras = _extract_extras(env)
remote:   File "/srv/www/htdocs/Kallithea-0.2.1/kallithea/lib/utils2.py", line 644, in _extract_extras
remote:     raise Exception('Missing key %s in os.environ %s' % (e, rc_extras))
remote: Exception: Missing key 'username' in os.environ {}

how to fix it?




More information about the kallithea-general mailing list