Skip to content

Commit cc3141b

Browse files
committed
Fix GIT_CONFIG_{KEY,VALUE} indexing
1 parent ddf2371 commit cc3141b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_util.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ test_util.setup_file() {
88
export GIT_CONFIG_NOSYSTEM=1
99
export GIT_CONFIG_GLOBAL="$PWD/git_config"
1010
export GIT_CONFIG_COUNT=3
11-
export GIT_CONFIG_KEY_2="user.email"
12-
export GIT_CONFIG_VALUE_2="name@example.com"
13-
export GIT_CONFIG_KEY_3="user.name"
14-
export GIT_CONFIG_VALUE_3="Name"
11+
export GIT_CONFIG_KEY_0="user.email"
12+
export GIT_CONFIG_VALUE_0="name@example.com"
13+
export GIT_CONFIG_KEY_1="user.name"
14+
export GIT_CONFIG_VALUE_1="Name"
1515
# This removes default warning about default "master" branch on some Git versions.
16-
export GIT_CONFIG_KEY_1="init.defaultBranch"
17-
export GIT_CONFIG_VALUE_1="main"
16+
export GIT_CONFIG_KEY_2="init.defaultBranch"
17+
export GIT_CONFIG_VALUE_2="main"
1818

1919
# Append to path so that we can access all commands included from git-extras
2020
# TODO: This currently breaks with commands that are included in "not_needed_git_repo" etc.

0 commit comments

Comments
 (0)