Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix tapkick revision fetching whitespace problem

  • Loading branch information...
commit f746cc17138afbe9f014a01612af449565827ca2 1 parent 8ad368a
@russellhaering russellhaering authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  example/stacks/tapkick.js
View
3  example/stacks/tapkick.js
@@ -11,7 +11,8 @@ var git = require('util/git');
exports.get_deployedRevision = function(args, callback) {
git.revParse(this.config.tapkick_dir, 'HEAD', function(err, stdout) {
- callback(null, stdout);
+ // trim leading and trailing whitespace
+ callback(null, stdout.replace(/^\s+|\s+$/g, ''));
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.