Discussion:
hooks/post-receive error on git push
Tommaso Cucinotta
2014-05-04 12:54:59 UTC
Permalink
Hi,

whenever I push (working in tommaso repo), I get this

remote: Traceback (most recent call last):
remote: File "hooks/post-receive", line 139, in <module>
remote: main()
remote: File "hooks/post-receive", line 129, in main
remote: with open(log_file_path, 'a') as log_file:
remote: IOError: [Errno 2] No such file or directory: ''

but apart from that, it seems things get pushed ok. Is this due to any misconfiguration of my private repo, or a wider problem ?

Thanks,

T.
Vincent van Ravesteijn
2014-05-04 16:58:26 UTC
Permalink
Post by Tommaso Cucinotta
Hi,
whenever I push (working in tommaso repo), I get this
remote: File "hooks/post-receive", line 139, in <module>
remote: main()
remote: File "hooks/post-receive", line 129, in main
remote: IOError: [Errno 2] No such file or directory: ''
but apart from that, it seems things get pushed ok. Is this due to any misconfiguration of my private repo, or a wider problem ?
Thanks,
T.
The git hooks seem to be copied to the developers' repositories, but the
git config variables are not. This means that the post-receive hook
cannot find the log file and gives an error. I disabled the hook for
your repository now, so the bug should be gone.

Vincent

Loading...