epush
This commit is contained in:
parent
c083f3a86e
commit
7b35bb6d9c
1
tools/commit_msg
Normal file
1
tools/commit_msg
Normal file
@ -0,0 +1 @@
|
||||
hi
|
@ -3,7 +3,6 @@
|
||||
|
||||
COMMIT_MSG=${1}
|
||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
FILES=("${@}")
|
||||
|
||||
printf "Checking if Git repository is present...\n"
|
||||
|
||||
@ -13,16 +12,11 @@ if [ "$?" != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${FILES}" = "" ]; then
|
||||
printf "No files added.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${COMMIT_MSG}" = "" ]; then
|
||||
printf "No commit message.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add ${FILES}
|
||||
git add *
|
||||
git commit -m ${COMMIT_MSG}
|
||||
git push origin ${BRANCH}
|
||||
|
Loading…
Reference in New Issue
Block a user