#5533 infra-docs git hook might be broken: python traceback about environment variable GIT_DIR not defined
Closed: Fixed 7 years ago Opened 7 years ago by till.

Here is the traceback:

$ git push
Zähle Objekte: 5, Fertig.
Delta compression using up to 2 threads.
Komprimiere Objekte: 100% (5/5), Fertig.
Schreibe Objekte: 100% (5/5), 556 bytes | 0 bytes/s, Fertig.
Total 5 (delta 4), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "/usr/local/bin/fedmsg-announce-commits.py", line 17, in <module>
remote:     abspath = os.path.abspath(os.environ['GIT_DIR'])
remote:   File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__
remote:     raise KeyError(key)
remote: KeyError: 'GIT_DIR'
remote: 
remote: Updating /git/infra-docs into /srv/web/infra/docs for production
remote: 
remote: Von /git/infra-docs
remote:    6f10d22..d0690c0  master     -> origin/master
remote: Aktualisiere 6f10d22..d0690c0
remote: Fast-forward
remote:  ansible.rst         |  6 +++---
remote:  fedora-releases.rst |  2 +-
remote:  orientation.rst     | 12 ++++++------
remote:  3 files changed, 10 insertions(+), 10 deletions(-)
remote: 
Killed by signal 1.
To ssh://batcave01.phx2.fedoraproject.org/git/infra-docs
   6f10d22..d0690c0  master -> master

I've commited a possible fix for this. Can you please test?

ok, It should finally be completely fixed now.

@kevin changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata