Skip to content

Commit

Permalink
Fix issue #2, change command to get branch name.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlopezcc committed Aug 2, 2017
1 parent 4b956c5 commit 9721b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 9721b40

Please sign in to comment.