本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
283B

  1. #!/usr/bin/env bash
  2. exitcodes=""
  3. hookname=$(basename $0)
  4. GIT_DIR=${GIT_DIR:-$(dirname $0)}
  5. for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
  6. test -x "${hook}" || continue
  7. "${hook}" $1 $2 $3
  8. exitcodes="${exitcodes} $?"
  9. done
  10. for i in ${exitcodes}; do
  11. [ ${i} -eq 0 ] || exit ${i}
  12. done
上海开阖软件有限公司 沪ICP备12045867号-1