MCPcopy Create free account
hub / github.com/christkv/node-git / execute_git_call

Function execute_git_call

lib/git/git.js:229–242  ·  view source on GitHub ↗
(call_string, options, callback)

Source from the content-addressed store, hash-verified

227}
228
229var execute_git_call = function(call_string, options, callback) {
230 // Execute the git command
231 options.maxBuffer = 1024 * 1024;
232 exec(call_string, options,
233 function (error, stdout, stderr) {
234 if (error != null) {
235 var result = error.toString();
236 callback(result != null ? result.trim() : result, null);
237 } else {
238 var result = stdout.toString();
239 callback(null, result != null ? result.trim() : result)
240 }
241 });
242}
243
244var file_index = function(git, callback) {
245 // If we have a file index object return it otherwise create a new one

Callers 1

git.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected