vigour-sentinel
Advanced tools
Comparing version 0.3.8 to 0.3.9
{ | ||
"name": "vigour-sentinel", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "Continuos Testing & Delivery Agent for vigour projects", | ||
@@ -5,0 +5,0 @@ "preferGlobal": "true", |
@@ -30,10 +30,7 @@ | ||
var addAndCommit = function(changed){ | ||
if(!changed){ | ||
return | ||
} | ||
var addAndCommit = function(){ | ||
log.info('Sentinel', 'adding and Committing changes') | ||
var commitMessage = `build for commit #${config.commit}` | ||
return exec('git add .', true) | ||
.then(() => exec( {cmd: 'git', args: ['commit', '-m', `"${commitMessage}"`] }, true)) | ||
.then(() => exec( {cmd: 'git', args: ['commit', '-m', `"${commitMessage}"`] }, true, true)) | ||
} | ||
@@ -51,3 +48,2 @@ | ||
return fs.writeFileAsync(filePath, output, 'utf8') | ||
.then(() => output !== data) | ||
}) | ||
@@ -54,0 +50,0 @@ } |
14017
234