We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f65182a + 32b74b9 commit 8bb81ccCopy full SHA for 8bb81cc
t/perf/perf-lib.sh
@@ -25,7 +25,19 @@ TEST_OUTPUT_DIRECTORY=$(pwd)
25
TEST_NO_CREATE_REPO=t
26
TEST_NO_MALLOC_CHECK=t
27
28
+# GIT-BUILD-OPTIONS, sourced by test-lib.sh, overwrites the `GIT_PERF_*`
29
+# values that are set by the user (if any). Let's stash them away as
30
+# `eval`-able assignments.
31
+git_perf_settings="$(env |
32
+ sed -n "/^GIT_PERF_/{
33
+ # escape all single-quotes in the value
34
+ s/'/'\\\\''/g
35
+ # turn this into an eval-able assignment
36
+ s/^\\([^=]*=\\)\\(.*\\)/\\1'\\2'/p
37
+ }")"
38
+
39
. ../test-lib.sh
40
+eval "$git_perf_settings"
41
42
unset GIT_CONFIG_NOSYSTEM
43
GIT_CONFIG_SYSTEM="$TEST_DIRECTORY/perf/config"
0 commit comments