diff --git a/util/build.js b/util/build.js index 3382fbb3f..2ea62d84c 100644 --- a/util/build.js +++ b/util/build.js @@ -15,7 +15,7 @@ var getCommitHash = function() { //exec git command to get the hash of the current commit //git rev-parse HEAD - var hash = shell.exec('git rev-parse HEAD').output.trim().substr(0,10); + var hash = shell.exec('git rev-parse HEAD',{silent:true}).output.trim().substr(0,7); return hash; } diff --git a/views/includes/version.html b/views/includes/version.html index f3a19d227..8ad2c64c5 100644 --- a/views/includes/version.html +++ b/views/includes/version.html @@ -1,6 +1,6 @@