Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git not available on windows server #76

Open
khacnha opened this issue Dec 1, 2016 · 3 comments
Open

git not available on windows server #76

khacnha opened this issue Dec 1, 2016 · 3 comments

Comments

@khacnha
Copy link

khacnha commented Dec 1, 2016

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!!

@DarrenRainey
Copy link

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

@markomarkovic
Copy link
Owner

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 markomarkovic changed the title <b>git</b> not available. It needs to be installed on the server for this script to work. git not available on windows server Dec 1, 2016
@pegues
Copy link

pegues commented Feb 13, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants