Skip to content

Commit

Permalink
don't commit or push if there are no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Herman committed Jun 9, 2012
1 parent e39504b commit 9dd53e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/build.js
Expand Up @@ -111,6 +111,12 @@ function push(message, cb) {
}
console.log("added files: " + add);
console.log("removed files: " + rm);

if (add.length === 0 && rm.length === 0) {
console.log("no changes");
return cb();
}

async.series([
// git rm -rf <removed files>
function(cb) {
Expand Down

0 comments on commit 9dd53e8

Please sign in to comment.