Skip to content

Commit efb804d

Browse files
committed
Remove unused and untested function
1 parent e48665e commit efb804d

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/test_util.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,3 @@ test_util.setup_file() {
2424
test_util.cd_test() {
2525
cd "$BATS_TEST_TMPDIR"
2626
}
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-
done
44-
export GIT_CONFIG_COUNT="${#configobj[@]}"
45-
}

0 commit comments

Comments
 (0)