Skip to content

Commit

Permalink
Merge pull request #3 from sophilabs/fix-issue-2-empty-repo
Browse files Browse the repository at this point in the history
Fix issue #2, change command to get branch name.
  • Loading branch information
pricco committed Aug 2, 2017
2 parents 4b956c5 + 9721b40 commit c966d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
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 c966d52

Please sign in to comment.