Skip to content

Commit 5e24d9b

Browse files
authored
Merge pull request #19 from aviskarkc10/master
Use symbolic-ref to get the branch name
2 parents 09576c4 + f043e3b commit 5e24d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ -z "${1:-}" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
1212
exit 1
1313
fi
1414

15-
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
15+
CURRENT_BRANCH="$(git symbolic-ref --short HEAD)"
1616
GIT_ROOT_DIRECTORY=$(git rev-parse --show-toplevel)
1717
IGNORED_BRANCHES=("dev" "master" "qa" "uat" "staging")
1818
CUSTOM_IGNORED_PATH="$GIT_ROOT_DIRECTORY/.smart-commit-ignore"

0 commit comments

Comments
 (0)