mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-21 06:11:18 +01:00
23 lines
321 B
Plaintext
23 lines
321 B
Plaintext
![]() |
#! /bin/sh
|
||
|
|
||
|
if [ -z "$(git branch)" ]; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
if [ -n "${GIT_DIR}" ]; then
|
||
|
hooksdir="./${GIT_DIR}/hooks/"
|
||
|
else
|
||
|
hooksdir="./"
|
||
|
fi
|
||
|
|
||
|
. "${hooksdir}common.sh"
|
||
|
|
||
|
isOnMasterBranch
|
||
|
if [ $? -eq 0 ]; then
|
||
|
echo "can't commit on master branch."
|
||
|
echo "please commit on topic branch."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
exit 0
|