Skip to content

Commit 9315f27

Browse files
committed
Merge branch 'jk/lib-proto-disable-cleanup' into maint-2.12
2 parents 95d6787 + 30c586f commit 9315f27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/lib-proto-disable.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,29 +147,33 @@ test_config () {
147147
# Test clone/fetch/push with protocol.allow user defined default
148148
test_expect_success "clone $desc (enabled)" '
149149
rm -rf tmp.git &&
150-
git config --global protocol.allow always &&
150+
test_config_global protocol.allow always &&
151151
git clone --bare "$url" tmp.git
152152
'
153153

154154
test_expect_success "fetch $desc (enabled)" '
155+
test_config_global protocol.allow always &&
155156
git -C tmp.git fetch
156157
'
157158

158159
test_expect_success "push $desc (enabled)" '
160+
test_config_global protocol.allow always &&
159161
git -C tmp.git push origin HEAD:pushed
160162
'
161163

162164
test_expect_success "push $desc (disabled)" '
163-
git config --global protocol.allow never &&
165+
test_config_global protocol.allow never &&
164166
test_must_fail git -C tmp.git push origin HEAD:pushed
165167
'
166168

167169
test_expect_success "fetch $desc (disabled)" '
170+
test_config_global protocol.allow never &&
168171
test_must_fail git -C tmp.git fetch
169172
'
170173

171174
test_expect_success "clone $desc (disabled)" '
172175
rm -rf tmp.git &&
176+
test_config_global protocol.allow never &&
173177
test_must_fail git clone --bare "$url" tmp.git
174178
'
175179
}

0 commit comments

Comments
 (0)