From 9721b40b64257f2113b40030831c6bcc6f20c70c Mon Sep 17 00:00:00 2001 From: rlopezcc Date: Wed, 2 Aug 2017 17:58:24 -0300 Subject: [PATCH] Fix issue #2, change command to get branch name. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 56784dd..09e749b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19,7 +19,7 @@ gilpUtil.getGitDirectory = function () { }; gilpUtil.getBranchName = function () { - return execSync('git rev-parse --abbrev-ref HEAD').toString().trim(); + return execSync('git symbolic-ref --short HEAD').toString().trim(); }; gilpUtil.getCommitMessage = function () {