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

ReferenceError: git is not defined #52

Closed
JedWatson opened this issue Nov 12, 2014 · 2 comments
Closed

ReferenceError: git is not defined #52

JedWatson opened this issue Nov 12, 2014 · 2 comments

Comments

@JedWatson
Copy link

Sorry if this is a silly issue, but I haven't been able to find any other info about to how to solve this.

When I run a task with gulp-git, I get the error ReferenceError: git is not defined

Sounds like it can't find git, which would make sense except that I if I type git in Terminal (Mac OS X 10.10) in the same directory, it works just fine. So perhaps the child_process module is using a different environment / path to my user.

Is there a particular path I need to add git to in order to make it work? I'm not sure exactly where it is installed or how to debug this further.

Thanks for the help, and the excellent package :)

@stephenlacy
Copy link
Owner

ReferenceError sounds like js:

var git = require('gulp-git');

Please add your gulpfile for farther investigation.

@JedWatson
Copy link
Author

Oh man, I can't believe I did that. Thanks.

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

2 participants