Skip to content

Commit

Permalink
Do not initiate automatic gc while buiding
Browse files Browse the repository at this point in the history
This can take quite long for some repositories (most notably Clang) and
it's clearly not something users should care about in general.
  • Loading branch information
ktf committed Jun 13, 2024
1 parent 6f3c6b1 commit 0fbd8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibuild_helpers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def git(args, directory=".", check=True, prompt=True):
args=" ".join(map(quote, args)),
# GIT_TERMINAL_PROMPT is only supported in git 2.3+.
prompt_var=f"GIT_TERMINAL_PROMPT=0" if not prompt else "",
directory_safe_var=f"GIT_CONFIG_COUNT={lastGitOverride+1} GIT_CONFIG_KEY_{lastGitOverride}=safe.directory GIT_CONFIG_VALUE_{lastGitOverride}=$PWD" if directory else "",
directory_safe_var=f"GIT_CONFIG_COUNT={lastGitOverride+2} GIT_CONFIG_KEY_{lastGitOverride}=safe.directory GIT_CONFIG_VALUE_{lastGitOverride}=$PWD GIT_CONFIG_KEY_{lastGitOverride+1}=gc.auto GIT_CONFIG_VALUE_{lastGitOverride+1}=0" if directory else "",
), timeout=GIT_COMMAND_TIMEOUT_SEC)
if check and err != 0:
raise SCMError("Error {} from git {}: {}".format(err, " ".join(args), output))
Expand Down

0 comments on commit 0fbd8b6

Please sign in to comment.