You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varfs=require('fs')vargitane=require('gitane')varpath=require('path')// Use current working dirvarbaseDir=process.cwd()// Read private key from ~/.ssh/id_dsavarprivKey=fs.readFileSync(path.join(__dirname,'striderci'),'utf8');gitane.run(baseDir,privKey,"git clone --recursive '[email protected]:strickdj/test-repo.git' ./test --branch master",function(err,stdout,stderr,exitCode){if(err){console.log("An error occurred: "+stderr)process.exit(1)}console.log("Git clone complete!")})
which produces the following:
`An error occurred: Cloning into './foo'...conq: invalid command syntax.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.`
it works correctly when i remove the quotes around the repo.
The text was updated successfully, but these errors were encountered:
I tried manually setting up a connection to bitbucket but it looks like the repo url is being incorrectly quoted in the git clone command.
I set up a test script with the following:
which produces the following:
The text was updated successfully, but these errors were encountered: