On 3 April 2011 13:48, Ian Lynagh <[email protected]> wrote:
> It should work for you. What error are you seeing?

The error is not what I thought:

"""
$ git push
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 348 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
Host key verification failed.
fatal: The remote end hung up unexpectedly
error: hooks/post-receive exited with error code 128
To ssh://darcs.haskell.org/srv/darcs/ghc.git
   731afdc..633a108  master -> master
"""

I wondered if this might be because I have never sshed to github.com
from abbot, so I logged in and did that, accepting their host key as
authentic.

I checked, and I could run the hook manually with almost no problems,
though it looks like $GIT_DIR is undefined from the command line:

"""
mbolingbroke@abbot:/srv/darcs/ghc.git$ hooks/post-receive
hooks/post-receive: line 3: /hooks/git-notifier: No such file or directory
Counting objects: 34, done.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 3.54 KiB, done.
Total 23 (delta 18), reused 0 (delta 0)
To [email protected]:ghc/ghc.git
   9330f8d..633a108  master -> master
 * [new branch]      patch-5084 -> patch-5084
"""

It then worked perfectly when I pushed from my machine. So I guess you
should advise everyone who is going to commit to d.h.o to ssh to
github.com first and accept their host key, or else create a
/etc/ssh/ssh_known_hosts file.

Cheers,
Max

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to