From a6837a82fe6cd29247602ef7f011727d423afccd Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Tue, 31 Mar 2015 11:06:50 +0300 Subject: [PATCH] Use GIT_COMMIT if found in the environment --- gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gruntfile.js b/gruntfile.js index bf750f7e6..d5f922271 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -61,7 +61,9 @@ module.exports = function(grunt) { }; var getCommitSha = function() { - return "" + if (process.env.GIT_COMMIT) { + return process.env.GIT_COMMIT; + return ""; }; var getPackageVersion = function() {