Comparing version 0.2.1 to 0.2.2
@@ -15,3 +15,3 @@ var fs = require('fs'); | ||
var getUrl = function(cb) { | ||
exec("cd '"+folder+"';git config --get remote.origin.url", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git config --get remote.origin.url", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -27,3 +27,3 @@ return cb(err); | ||
var getMeta = function(data, cb) { | ||
exec("cd '"+folder+"';git show --quiet --format=%H%n%aD%n%s%n%B HEAD", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git show --quiet --format=%H%n%aD%n%s%n%B HEAD", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -40,3 +40,3 @@ return cb(err); | ||
var getStaged = function(data, cb) { | ||
exec("cd '"+folder+"';git status -s", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git status -s", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -50,3 +50,3 @@ return cb(err); | ||
var getBranch = function(data, cb) { | ||
exec("cd '"+folder+"';git rev-parse --abbrev-ref HEAD", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git rev-parse --abbrev-ref HEAD", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -60,3 +60,3 @@ return cb(err); | ||
var getRemote = function(data, cb) { | ||
exec("cd '"+folder+"';git remote", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -73,3 +73,3 @@ return cb(err); | ||
var getPrevNext = function(data, cb) { | ||
exec("cd '"+folder+"';git log "+data.remote+"/"+data.branch+" --pretty=oneline", | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git log "+data.remote+"/"+data.branch+" --pretty=oneline", | ||
function(err, stdout, stderr) { | ||
@@ -123,3 +123,3 @@ if(err !== null) | ||
return cb(err); | ||
exec("cd '"+folder+"';git remote update >> /dev/null 2>&1; git log "+data.remote | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 git remote update >> /dev/null 2>&1; git log "+data.remote | ||
+"/"+data.branch+" --pretty=oneline -n 1", function(err, stdout, stderr) { | ||
@@ -142,3 +142,3 @@ var res = {}; | ||
git.revert = function(args, cb) { | ||
exec("cd '"+args.folder+"';git reset --hard "+args.revision, | ||
exec("cd '"+args.folder+"';LC_ALL=en_US.UTF-8 git reset --hard "+args.revision, | ||
function(err, stdout, stderr) { | ||
@@ -145,0 +145,0 @@ if (err !== null || stderr.substring(0, 6) === 'fatal:') |
@@ -36,3 +36,3 @@ var exec = require("child_process").exec; | ||
exec("cd '"+folder+"'; hg paths default", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 hg paths default", function(err, stdout, stderr) { | ||
if(err !== null) { | ||
@@ -46,3 +46,3 @@ error("mercurial", "fetching path", stderr, cb); | ||
}); | ||
exec("cd '"+folder+"'; hg log --limit 1", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 hg log --limit 1", function(err, stdout, stderr) { | ||
if(err !== null) { | ||
@@ -61,3 +61,3 @@ error("mercurial", "fetching log", stderr, cb); | ||
}); | ||
exec("cd '"+folder+"'; hg branch", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 hg branch", function(err, stdout, stderr) { | ||
if(err !== null) { | ||
@@ -64,0 +64,0 @@ error("mercurial", "fetching branch", stderr, cb); |
@@ -1,4 +0,4 @@ | ||
var fs = require("fs"); | ||
var fs = require('fs'); | ||
var async = require('async'); | ||
var exec = require("child_process").exec; | ||
var exec = require('child_process').exec; | ||
@@ -9,3 +9,3 @@ var svn = {}; | ||
var getMeta = function(cb) { | ||
exec("cd '"+folder+"';svn info", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 svn info", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -16,4 +16,6 @@ return cb(err); | ||
data.url = stdout.match(/Repository Root: ([^\n]+)/); | ||
if (data.url) data.url = data.url[1]; | ||
data.branch = data.url.match(/[^/]+$/); | ||
if (data.url && typeof(data.url) === 'object') { | ||
data.url = data.url[1]; | ||
data.branch = typeof(data.url) === 'string' ? data.url.match(/[^/]+$/) : null; | ||
} | ||
if (data.branch) data.branch = data.branch[0]; | ||
@@ -25,3 +27,3 @@ return cb(null, data); | ||
var getRevComment = function(data, cb) { | ||
exec("cd '"+folder+"';svn log -r BASE", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 svn log -r BASE", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -63,7 +65,7 @@ return cb(err); | ||
exec("cd '"+folder+"';svn info", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 svn info", function(err, stdout, stderr) { | ||
if(err !== null) | ||
return cb(err); | ||
var current_rev = getRev(stdout); | ||
exec("cd '"+folder+"';svn info -r HEAD", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 svn info -r HEAD", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -83,3 +85,3 @@ return cb(err); | ||
exec("cd '"+folder+"';svn update", function(err, stdout, stderr) { | ||
exec("cd '"+folder+"';LC_ALL=en_US.UTF-8 svn update", function(err, stdout, stderr) { | ||
if(err !== null) | ||
@@ -86,0 +88,0 @@ return cb(err); |
{ | ||
"name": "vizion", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"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
60039
609