simple-php-git-deploy icon indicating copy to clipboard operation
simple-php-git-deploy copied to clipboard

git not available on windows server

Open khacnha opened this issue 8 years ago • 3 comments

I run project in window server 2008. I have completed the installation and setup git in PATH: C:\Program Files\Git\cmd;C:\Program Files\Git\cmd\bin

But test in github, repsonse follow: ` Checking the environment ...

Running as nt authority\system.

git not available. It needs to be installed on the server for this script to work.
`

Please help!!

khacnha avatar Dec 01 '16 07:12 khacnha

what version of git are you using are you using the GitHub one or git-scm

DarrenRainey avatar Dec 01 '16 10:12 DarrenRainey

I've only tested the script on linux systems, I have no idea how it's going to behave on anything else. The script uses which shell command to determine if the git, rsync and other binaries are available, which seems not to be available on windows. Try commenting out the binaries detecting part of the script to skip it, and see if anything else works, but please backup first!

markomarkovic avatar Dec 01 '16 12:12 markomarkovic

I have the same issue on Windows. Perhaps if your script allowed for specifying the path to git and rsync, that would fix the issue. I tried commenting out the binaries part as suggested, but then it gives an error that git is not a command when it gets to the part of trying and clone the repository:

<span class="prompt">$</span> <span class="command">git clone --depth=1 --branch master https://github.com/xxxxxx/xxxxxx.git /c/Apache24/htdocs/tmp/spgd-b069d0a5c427ae22e07ac635c4148e56/</span>
<div class="output">'git' is not recognized as an internal or external command,

operable program or batch file.

pegues avatar Feb 13 '17 17:02 pegues