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

前端 未结 6 1300
失恋的感觉
失恋的感觉 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:37

    Another possible cause for post-receive hook trouble is identified and fixed in Git 2.13 (Q2 2017): if the GIT_WORK_TREE is set to an invalid path.

    See commit ce83ead, commit aac3eaa (08 Mar 2017) by Johannes Schindelin (dscho).
    (Merged by Junio C Hamano -- gitster -- in commit ba37c92, 13 Mar 2017)

    Example (which would crash with Git 2.12 only)

    GIT_WORK_TREE=/.invalid/work/tree &&
    export GIT_WORK_TREE &&
    git rev-parse
    # dies with error code 128
    

    The bug was introduced in Git 2.12.

提交回复
热议问题