Comparing version 0.1.5 to 0.1.6
@@ -56,3 +56,3 @@ var fs = require('fs'); | ||
var getPrevNext = function(data, cb) { | ||
exec("cd '"+folder+"';git log --pretty=oneline", | ||
exec("cd '"+folder+"';git log "+data.remote+"/"+data.branch+" --pretty=oneline", | ||
function(err, stdout, stderr) { | ||
@@ -71,4 +71,6 @@ if(err !== null) | ||
var current = commit_history.indexOf(data.revision); | ||
data.next_rev = null; | ||
data.prev_rev = null; | ||
if (current === -1) { | ||
cb('Cannot find current revision in revision history'); | ||
data.ahead = true; | ||
} | ||
@@ -75,0 +77,0 @@ else { |
{ | ||
"name": "vizion", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=0.10" |
@@ -24,3 +24,3 @@ | ||
after(function(done) { | ||
//shell.rm('-rf', 'angular-bridge'); | ||
shell.rm('-rf', 'angular-bridge'); | ||
done(); | ||
@@ -27,0 +27,0 @@ }); |
60185
649