David Horstmann 8eaeb38b3a Allow code_style.py to work from a git hook
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>
2024-06-06 16:20:58 +01:00
..
data_files Fix #ifdef guard in driver wrapper template 2024-03-22 11:43:19 +00:00
abi_check.py Make abi_check.py look in both locations 2024-05-31 15:51:41 +01:00
apidoc_full.sh update headers 2023-11-02 19:47:20 +00:00
assemble_changelog.py Remove leftover code from initial changelog support 2023-12-04 14:37:31 +01:00
basic.requirements.txt Add requirement on Jinja to integrate drivers 2021-11-17 19:27:45 +01:00
bump_version.sh update headers 2023-11-02 19:47:20 +00:00
ci.requirements.txt move asn1crypto to ci.requirements.txt 2023-10-24 15:42:30 +08:00
code_size_compare.py Rename framework_path to framework_scripts_path 2024-05-13 14:44:37 +01:00
code_style.py Allow code_style.py to work from a git hook 2024-06-06 16:20:58 +01:00
common.make Show guidance if the framework is not found 2024-03-04 17:12:59 +01:00
config.pl update headers 2023-11-02 19:47:20 +00:00
config.py Preserve alphabetical sorting of config options 2024-03-14 14:52:45 +00:00
driver.requirements.txt Set explicit version for the typing packages 2023-09-25 10:25:18 +02:00
ecc-heap.sh update headers 2023-11-02 19:47:20 +00:00
ecp_comb_table.py update headers 2023-11-02 19:47:20 +00:00
footprint.sh update headers 2023-11-02 19:47:20 +00:00
framework_scripts_path.py Rename framework_path to framework_scripts_path 2024-05-13 14:44:37 +01:00
generate_driver_wrappers.py Rename framework_path to framework_scripts_path 2024-05-13 14:44:37 +01:00
generate_errors.pl update headers 2023-11-02 19:47:20 +00:00
generate_features.pl update headers 2023-11-02 19:47:20 +00:00
generate_psa_constants.py Rename framework_path to framework_scripts_path 2024-05-13 14:44:37 +01:00
generate_query_config.pl update headers 2023-11-02 19:47:20 +00:00
generate_ssl_debug_helpers.py Merge pull request #9177 from ttytm/fix-typo-bp-3.6 2024-05-30 17:24:57 +00:00
generate_visualc_files.pl Update the MSBuild toolset versions to VS2017 2024-03-13 11:23:16 +01:00
lcov.sh Work around a bug in ancient lcov 2024-03-13 17:19:17 +01:00
maintainer.requirements.txt move asn1crypto to ci.requirements.txt 2023-10-24 15:42:30 +08:00
make_generated_files.bat Update file paths for moved files 2024-05-31 15:51:41 +01:00
massif_max.pl update headers 2023-11-02 19:47:20 +00:00
memory.sh update headers 2023-11-02 19:47:20 +00:00
min_requirements.py Rename framework_path to framework_scripts_path 2024-05-13 14:44:37 +01:00
output_env.sh update headers 2023-11-02 19:47:20 +00:00
prepare_release.sh prepare_release: sed querry change to strip whitespace 2023-11-22 14:23:12 +00:00
tmp_ignore_makefiles.sh update headers 2023-11-02 19:47:20 +00:00
windows_msbuild.bat Rename solution files to referece VS2017 2024-03-13 11:23:16 +01:00