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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

25 line
426 B

  1. #!/bin/bash
  2. set -e
  3. remote="$1"
  4. url="$2"
  5. z40=0000000000000000000000000000000000000000
  6. while read local_ref local_sha remote_ref remote_sha
  7. do
  8. if [[ "${local_sha}" = $z40 ]]; then
  9. echo "Deleting stuff, nothing to do"
  10. else
  11. (
  12. cd cours
  13. poetry run python build.py --clean --werror
  14. poetry run python build.py --format pdf
  15. poetry run python deploy.py
  16. )
  17. fi
  18. done
  19. git lfs pre-push "$@"