Comparing version 0.2.8 to 0.2.9
@@ -8,2 +8,3 @@ var fs = require('fs'); | ||
var TIMEOUT = 5000; | ||
var MAXBUFFER = 1024 * 16; // 16KB | ||
@@ -18,3 +19,3 @@ git.parse = function(folder, cb) { | ||
var getUrl = function(cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git config --get remote.origin.url", {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git config --get remote.origin.url", {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -31,3 +32,3 @@ if(err !== null) | ||
var getMeta = function(data, cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show --quiet --format=%H%n%aD%n%s%n%B HEAD", {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show --quiet --format=%H%n%aD%n%s%n%B HEAD", {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -45,3 +46,3 @@ if(err !== null) | ||
var getStaged = function(data, cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git status -s", {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git status -s", {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -56,3 +57,3 @@ if(err !== null) | ||
var getBranch = function(data, cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git rev-parse --abbrev-ref HEAD", {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git rev-parse --abbrev-ref HEAD", {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -67,3 +68,3 @@ if(err !== null) | ||
var getRemote = function(data, cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote", {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote", {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -81,3 +82,3 @@ if(err !== null) | ||
var getRemoteBrancheExistence = function(data, cb) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show-ref refs/remotes/"+data.remote+"/"+data.branch, {timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show-ref refs/remotes/"+data.remote+"/"+data.branch, {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -99,4 +100,4 @@ if (err) | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git log "+ prefix + data.branch +" --pretty=oneline -n 200", | ||
{timeout: TIMEOUT}, | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git log "+ prefix + data.branch +" --pretty=oneline -n 100", | ||
{timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -157,3 +158,3 @@ if(err !== null) | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote update >> /dev/null 2>&1; git log "+ prefix+data.branch+ | ||
" --pretty=oneline -n 1", {timeout: 60000}, | ||
" --pretty=oneline -n 1", {timeout: 60000, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -181,3 +182,3 @@ var res = {}; | ||
ret.success = true; | ||
exec(command, {timeout: TIMEOUT}, | ||
exec(command, {timeout: TIMEOUT, maxBuffer: MAXBUFFER}, | ||
function(err, stdout, stderr) { | ||
@@ -184,0 +185,0 @@ ret.output += stdout; |
{ | ||
"name": "vizion", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=0.10" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61369
644