Skip to content

Commit e213314

Browse files
author
Matt Pearson
committed
Set 'append_hash' before parsing args.
1 parent 5f98275 commit e213314

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ main() {
77
source .env
88
fi
99

10+
#append commit hash to the end of message by default
11+
append_hash=true
12+
1013
# Parse arg flags
1114
while : ; do
1215
if [[ $1 = "-v" || $1 = "--verbose" ]]; then
@@ -40,9 +43,6 @@ main() {
4043
#repository to deploy to. must be readable and writable.
4144
repo=${GIT_DEPLOY_REPO:-origin}
4245

43-
#append commit hash to the end of message by default
44-
append_hash=true
45-
4646
enable_expanded_output
4747

4848
if ! git diff --exit-code --quiet --cached; then

0 commit comments

Comments
 (0)