diff --git a/tasks/get_build_props.js b/tasks/get_build_props.js index ec809ab3eaaa..242e8afe1b0c 100644 --- a/tasks/get_build_props.js +++ b/tasks/get_build_props.js @@ -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()); }); -}; \ No newline at end of file +};