File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,17 @@ test_expect_success 'clone from auth-only-for-objects repository' '
164
164
165
165
test_expect_success ' no-op half-auth fetch does not require a password' '
166
166
set_askpass wrong &&
167
- git --git-dir=half-auth fetch &&
167
+
168
+ # NEEDSWORK: When using HTTP(S), protocol v0 supports a "half-auth"
169
+ # configuration with authentication required only when downloading
170
+ # objects and not refs, by having the HTTP server only require
171
+ # authentication for the "git-upload-pack" path and not "info/refs".
172
+ # This is not possible with protocol v2, since both objects and refs
173
+ # are obtained from the "git-upload-pack" path. A solution to this is
174
+ # to teach the server and client to be able to inline ls-refs requests
175
+ # as an Extra Parameter (see pack-protocol.txt), so that "info/refs"
176
+ # can serve refs, just like it does in protocol v0.
177
+ GIT_TEST_PROTOCOL_VERSION=0 git --git-dir=half-auth fetch &&
168
178
expect_askpass none
169
179
'
170
180
You can’t perform that action at this time.
0 commit comments