Update get_build_props.js

Used git rev-parse HEAD to pick out and massage parameters
This commit is contained in:
mgolinelli 2014-12-17 08:22:36 +01:00
parent c3f964c37c
commit 7a1644c59f

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());
});
};
};