We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09576c4 + f043e3b commit 5e24d9bCopy full SHA for 5e24d9b
commit
@@ -12,7 +12,7 @@ if [ -z "${1:-}" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
12
exit 1
13
fi
14
15
-CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
+CURRENT_BRANCH="$(git symbolic-ref --short HEAD)"
16
GIT_ROOT_DIRECTORY=$(git rev-parse --show-toplevel)
17
IGNORED_BRANCHES=("dev" "master" "qa" "uat" "staging")
18
CUSTOM_IGNORED_PATH="$GIT_ROOT_DIRECTORY/.smart-commit-ignore"
0 commit comments