Merge pull request #2352 from mgolinelli/patch-1

Update get_build_props.js
This commit is contained in:
Spencer 2014-12-18 16:06:50 -07:00
commit ae1edeb591

View file

@ -4,7 +4,7 @@ module.exports = function (grunt) {
grunt.registerTask('get_build_props', function () {
Promise.props({
sha: spawn.silent('git', ['log', '--format=%H', '-n1'])(),
sha: spawn.silent('git', ['rev-parse', 'HEAD'])(),
num: spawn.silent('sh', ['-c', 'git log --format="%h" | wc -l'])()
})
.then(function (props) {
@ -13,4 +13,4 @@ module.exports = function (grunt) {
})
.nodeify(this.async());
});
};
};