git returned error code 128
See original GitHub issueI am executing Sample Project with Sample code available But getting Error “git returned error code 128” Code: const BotDriver = require(‘botium-core’).BotDriver const Capabilities = require(‘botium-core’).Capabilities const Source = require(‘botium-core’).Source
function assert (expected, actual) {
if (!actual || actual.indexOf(expected) < 0) {
console.log(ERROR: Expected <${expected}>, got <${actual}>
)
} else {
console.log(SUCCESS: Got Expected <${expected}>
)
}
}
const driver = new BotDriver() .setCapability(Capabilities.PROJECTNAME, ‘core-CreateNewConversation’) .setCapability(Capabilities.BOTFRAMEWORK_API, true) .setCapability(Capabilities.BOTFRAMEWORK_APP_ID, ‘my microsoft app id’) .setCapability(Capabilities.BOTFRAMEWORK_CHANNEL_ID, ‘facebook’) .setCapability(Capabilities.CLEANUPTEMPDIR, false) .setSource(Source.GITURL, ‘https://github.com/Microsoft/BotBuilder-Samples.git’) .setSource(Source.GITDIR, ‘Node/core-CreateNewConversation’) .setSource(Source.GITPREPARECMD, ‘npm install’) .setCapability(Capabilities.STARTCMD, ‘npm start’) .setEnv(‘MICROSOFT_APP_ID’, ‘my microsoft app id’) .setEnv(‘MICROSOFT_APP_PASSWORD’, ‘my microsoft app password’) .setEnv(‘NODE_DEBUG’, ‘botbuilder’) .setEnv(‘DEBUG’, ‘*’)
driver.BuildFluent() .Start() .UserSaysText(‘hi bot’) .WaitBotSaysText((text) => assert(‘You've been invited to a survey! It will start in a few seconds…’, text)) .WaitBotSaysText(null, 10000, (text) => assert(‘Hello… What's your name?’, text)) .UserSaysText(‘John’) .WaitBotSaysText((text) => assert(‘Hi John, How many years have you been coding?’, text)) .UserSaysText(‘5’) .WaitBotSaysText((text) => assert(‘What language do you code Node using?’, text)) .UserSaysText(‘CoffeeScript’) .WaitBotSaysText((text) => assert(‘Got it… John you've been programming for 5 years and use CoffeeScript.’, text)) .Stop() .Clean() .Exec() .then(() => { console.log(‘READY’) }) .catch((err) => { console.log('ERROR: ', err) })
My Error: iMaheshwari-4:botium Mukesh$ node botiumFluent.js ERROR: Error: git returned error code 128 at ChildProcess.<anonymous> (/Users/Mukesh/botium/node_modules/botium-core/dist/botium-cjs.js:1330:18) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:891:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) iMaheshwari-4:botium Mukesh$
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
https://github.com/codeforequity-at/botium-core/wiki
No, there currently is no way to control this. I added it to our backlog, but for now you have to find another solution. With the environment variable BOTIUM_TEMPDIR you can place the temporary files into a very short path like C:/Temp instead of the project directory, maybe this helps (in my case it helped).