mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-31 00:37:08 +08:00
When running a git hook, git sets certain environment variables (such as GIT_INDEX_FILE) which force git to look at the main repository, overriding other options. This trips up code_style.py whenever it tries to run a git command on the framework submodule. Fix this by explicitly clearing git-related environment-variables before running git commands on the framework. This is recommended by git's documentation[1]: > Environment variables, such as GIT_DIR, GIT_WORK_TREE, etc., are > exported so that Git commands run by the hook can correctly locate > the repository. If your hook needs to invoke Git commands in a > foreign repository or in a different working tree of the same > repository, then it should clear these environment variables so > they do not interfere with Git operations at the foreign location. [1] https://git-scm.com/docs/githooks Signed-off-by: David Horstmann <david.horstmann@arm.com> |
||
|---|---|---|
| .. | ||
| data_files | ||
| abi_check.py | ||
| apidoc_full.sh | ||
| assemble_changelog.py | ||
| basic.requirements.txt | ||
| bump_version.sh | ||
| ci.requirements.txt | ||
| code_size_compare.py | ||
| code_style.py | ||
| common.make | ||
| config.pl | ||
| config.py | ||
| driver.requirements.txt | ||
| ecc-heap.sh | ||
| ecp_comb_table.py | ||
| footprint.sh | ||
| framework_scripts_path.py | ||
| generate_driver_wrappers.py | ||
| generate_errors.pl | ||
| generate_features.pl | ||
| generate_psa_constants.py | ||
| generate_query_config.pl | ||
| generate_ssl_debug_helpers.py | ||
| generate_visualc_files.pl | ||
| lcov.sh | ||
| maintainer.requirements.txt | ||
| make_generated_files.bat | ||
| massif_max.pl | ||
| memory.sh | ||
| min_requirements.py | ||
| output_env.sh | ||
| prepare_release.sh | ||
| tmp_ignore_makefiles.sh | ||
| windows_msbuild.bat | ||