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

Function shell_escape

lib/git/git.js:202–204  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

200}
201
202var shell_escape = function(str) {
203 return str.toString().replace('"', "\\\"").replace(/\;/g, "\\;");
204}
205
206// Call the native git binary
207Git.prototype.call_git = function(prefix, command, postfix, options, args, callback) {

Callers 1

git.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected