Issue #905: hook scripts have wrong python shebang path on windows

meixger's Avatar


10 Feb, 2014 10:53 AM


On Windows the shebang path

#!/usr/bin/env python
gives the client the error:

remote: /Git/env: hooks/pre-receive: No such file or directory

I temporerely changed it to
#!/Program Files (x86)/RhodeCode Enterprise/system/Scripts/python.exe

Responsible: marcinkuzminski

  1. Support Staff 1 Posted by Marcin Kuzminsk... on 14 Feb, 2014 05:22 PM

    Marcin Kuzminski's Avatar

    Hmm i just realized it works in our work server, did you install rhodecode via installer ?

  2. 2 Posted by dumpster+rhodec... on 19 Feb, 2014 09:27 PM

    dumpster+rhodecode's Avatar

    Yes, Installer 0.7.0 RhodeCode 2.2.4 on Windows 2012 Standard x64

  3. Support Staff 3 Posted by Marcin Kuzminsk... on 06 Mar, 2014 07:53 PM

    Marcin Kuzminski's Avatar

    Ok it seems we have to auto set the path for hooks, if you are interested here's the patch we're going to probably use for this:

    It auto sets the path to python executable. New version also has a force reinstallation of git hooks.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac