We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b8f4d3 + bd3cf83 commit 5e0db83Copy full SHA for 5e0db83
1 file changed
commit
100755
100644
@@ -17,18 +17,8 @@ CURRENT_BRANCH=$(eval $CURRENT_BRANCH_CMD)
17
18
COMMIT_WITH_BRANCH="git commit -m \"$CURRENT_BRANCH: $1\""
19
DEFAULT_COMMIT="git commit -m \"$1\""
20
-IS_IGNORED=false
21
22
-for branch in "${IGNORED_BRANCHES[@]}";
23
-do
24
- if [ "$CURRENT_BRANCH" == $branch ]
25
- then
26
- IS_IGNORED=true
27
- break
28
- fi
29
-done
30
-
31
-if [ "$IS_IGNORED" == false ]
+if [ "$CURRENT_BRANCH" != "dev" ] && [ "$CURRENT_BRANCH" != "master" ] && [ "$CURRENT_BRANCH" != "qa" ] && [ "$CURRENT_BRANCH" != "uat" ] && [ "$CURRENT_BRANCH" != "staging" ]
32
then
33
echo "Commiting with branch name -> $CURRENT_BRANCH"
34
eval $COMMIT_WITH_BRANCH
0 commit comments