We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91909f0 commit 5305567Copy full SHA for 5305567
index.js
@@ -35,7 +35,7 @@ const isInvalidMessage = (commitMessage) => {
35
* @returns {String}
36
*/
37
const fetchBranchNameFromGit = () => {
38
- return childProcess.execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf-8" }).split("\n")[0];
+ return childProcess.execSync("git branch --show-current", { encoding: "utf-8" }).split("\n")[0];
39
};
40
41
/**
0 commit comments