File tree Expand file tree Collapse file tree
.githooks/pre-push-python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ensure generated pyproject.toml extras are up-to-date
22
3+ # Clear git env vars set by the parent hook so git commands resolve the work tree normally
4+ unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_PREFIX
5+
36# Store the root directory of the repository
47REPO_ROOT=" $( git rev-parse --show-toplevel) "
58PYTHON_DIR=" $REPO_ROOT /python"
Original file line number Diff line number Diff line change 22
33set -e
44
5+ # Clear git env vars set by the parent hook so git commands resolve the work tree normally
6+ unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_PREFIX
7+
58# Store the root directory of the repository
69REPO_ROOT=" $( git rev-parse --show-toplevel) "
710PYTHON_DIR=" $REPO_ROOT /python"
Original file line number Diff line number Diff line change 11# ensure generated python stubs are up-to-date, from sync clients
22
3+ # Clear git env vars set by the parent hook so git commands resolve the work tree normally
4+ unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_PREFIX
5+
36# Store the root directory of the repository
47REPO_ROOT=" $( git rev-parse --show-toplevel) "
58PYTHON_DIR=" $REPO_ROOT /python"
You can’t perform that action at this time.
0 commit comments