#191 Add gitpython library to python path for hook scripts

open
nobody
None
SCM-Git
2014-02-24
2013-11-06
Derek Battams
No

Would it be possible to install the gitpython library such that it's available to the post-receive-user script executed server side when pushes are made to the server?

I was able to install the lib on my shell account, but it seems whatever's installed on a user shell isn't available in the execution environment of the hooks on the code server.

This library makes it very easy to interact with the repository during post processing.

http://pythonhosted.org/GitPython/0.3.1/index.html

If it can't/won't be installed system wide, is there some other way to make it available to my hook scripts?

Discussion

  • Chris Tsai
    Chris Tsai
    2013-11-08

    Ticket moved from /p/forge/site-support/5820/

    Can't be converted:

    • _page:
    • _related: sagetv-addons
     
  • Chris Tsai
    Chris Tsai
    2013-11-08

    • status: unread --> open
    • Category: --> SCM-Git
     
  • Chris Tsai
    Chris Tsai
    2013-11-08

    I've moved this to the feature request section to gauge interest in having this library available site-wide.

    As for installing it in your space, it is correct that the servers for the shell service is separate from the servers that host the repositories and run hook scripts. I haven't tested this, but I believe your best bet for this would be to try and install directory path of the repo itself. Also, please note that the paths on the shell service likewise do not necessarily match the paths on the repository server.

    Note that installing a library like that in your own space would be considered "unsupported", in other words, we can't give much assistance for it, though if you are able to do that yourself, I don't see a problem with it.

    Regards,
    Chris Tsai, SourceForge.net Support