We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48665e commit efb804dCopy full SHA for efb804d
tests/test_util.sh
@@ -24,22 +24,3 @@ test_util.setup_file() {
24
test_util.cd_test() {
25
cd "$BATS_TEST_TMPDIR"
26
}
27
-
28
-test_util.set_git_config_env() {
29
- local -a varkeys=()
30
- readarray -t varkeys <(POSIXLY_CORRECT=1 set)
31
- for line in "${varkeys[@]}"; do
32
- if [[ $line =~ ^(GIT_CONFIG_KEY|GIT_CONFIG_VALUE) ]]; then
33
- unset -v "${line%%=*}"
34
- fi
35
- done
36
37
- local -n configobj="$1"
38
- local idx=0
39
- for key in "${!configobj[@]}"; do
40
- export "GIT_CONFIG_KEY_$idx=$key"
41
- export "GIT_CONFIG_VALUE_$idx=${configobj[$key]}"
42
- ((idx += 1))
43
44
- export GIT_CONFIG_COUNT="${#configobj[@]}"
45
-}
0 commit comments