Download data/gitTools/hooks/post-commit from introvoyz045/COPASI: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/gitTools/hooks/post-commit
- Command line
-
hf download hf://datasets/introvoyz045/COPASI/data/gitTools/hooks/post-commit
-
curl -L -o post-commit https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/gitTools/hooks/post-commit
678 Bytes
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| . "$(git rev-parse --show-toplevel)/gitTools/functions" | |
| if [ -e ${GitTools}/checkout ]; then | |
| for f in `cat ${GitTools}/checkout`; do | |
| debug post-commit: checking out $f | |
| if [ -e "$f" ]; then | |
| rm $f | |
| git checkout -- $f | |
| fi | |
| done | |
| rm ${GitTools}/checkout | |
| fi | |
| if [ -e ${GitTools}/UpdateCopasiVersion ]; then | |
| ${GitTools}/UpdateCopasiVersion | |
| fi | |