-
Notifications
You must be signed in to change notification settings - Fork 87
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
ENOENT whenever trying to git.clone into a folder that still doesn't exist #95
Comments
Can you confirm that the folder structure and repo name are correct? Can you also show your exec function? |
gulp.task('install', function(cb) {
return exec('git clone repo.git dest', function(err, stdin, stdout) {
if (err) {
console.log(err);
}
cb();
});
}); yeah, the folder structure is used as a |
Did you add the cwd to the raw exec function? |
the |
basically im doing |
The cwd is the node working directory, not the destination folder for the git command. Add the destination to the args option, I will add the example to the repo for sub folders, thanks for bringing it up! |
Thank you, Sorry for my miscomprehension. |
So, I am using
exec
to clone a repo and place it on a specific folder (in this case isfolder1/2/3/4/5
inside of the project), and it works just fine.But, whenever i try to achiev the same using git.clone, i get
ENOENT
error. The task is:Honestly I'm not sure if I'm doing this the right way, but the docs aren't so clear about this.
The text was updated successfully, but these errors were encountered: