post-receive hook fails - any chance to see why?

前端 未结 6 1248
失恋的感觉
失恋的感觉 2021-01-15 05:07

I\'m implementing this approach to send updates to my website:

created bare repository to push to

$ mkdir website.git && cd website.git
$ git         


        
6条回答
  •  执念已碎
    2021-01-15 05:40

    cd .git/hooks
    mv post-receive post-receive-inner
    

    now create a new post-receive:

    #!/bin/bash
    set -x
    ./post-receive-inner "$@" 1>/tmp/git.log 2>&1 
    

    Make this executable and try again, the results should end up in /tmp/git.log

提交回复
热议问题