@@ -247,6 +247,42 @@ test_expect_success 'scalar reconfigure --all with detached HEADs' '
247247 done
248248'
249249
250+ test_expect_success ' verify http.<url>.version=HTTP/1.1 for ADO URLs' '
251+ test_when_finished rm -rf ado-test &&
252+
253+ # Create a test repository
254+ git init ado-test &&
255+
256+ # Set ADO URL as remote
257+ git -C ado-test remote add origin https://dev.azure.com/test/project/_git/repo &&
258+
259+ # Run scalar reconfigure
260+ scalar reconfigure ado-test &&
261+
262+ # Verify URL-specific HTTP version setting
263+ git -C ado-test config "http.https://dev.azure.com/test/project/_git/repo.version" >actual &&
264+ echo "HTTP/1.1" >expect &&
265+ test_cmp expect actual
266+ '
267+
268+ test_expect_success ' verify http.<url>.version=HTTP/1.1 for visualstudio.com URLs' '
269+ test_when_finished rm -rf vso-test &&
270+
271+ # Create a test repository
272+ git init vso-test &&
273+
274+ # Set VSO URL as remote
275+ git -C vso-test remote add origin https://contoso.visualstudio.com/project/_git/repo &&
276+
277+ # Run scalar reconfigure
278+ scalar reconfigure vso-test &&
279+
280+ # Verify URL-specific HTTP version setting
281+ git -C vso-test config "http.https://contoso.visualstudio.com/project/_git/repo.version" >actual &&
282+ echo "HTTP/1.1" >expect &&
283+ test_cmp expect actual
284+ '
285+
250286test_expect_success ' `reconfigure -a` removes stale config entries' '
251287 git init stale/src &&
252288 scalar register stale &&
@@ -386,10 +422,41 @@ test_expect_success '`scalar clone` with GVFS-enabled server' '
386422 git -C using-gvfs/src config gvfs.sharedCache >actual &&
387423 test_cmp expect actual &&
388424
389- : verify that HTTP/1.1 is configured for ADO URLs &&
390- git -C using-gvfs/src config http.version >actual &&
425+ test_expect_success ' verify http.< url> .version=HTTP/1.1 for ADO URLs' '
426+ test_when_finished rm -rf ado-test &&
427+
428+ # Create a test repository
429+ git init ado-test &&
430+
431+ # Set ADO URL as remote
432+ git -C ado-test remote add origin https://dev.azure.com/test/project/_git/repo &&
433+
434+ # Run scalar reconfigure
435+ scalar reconfigure ado-test &&
436+
437+ # Verify URL-specific HTTP version setting
438+ git -C ado-test config " http.https://dev.azure.com/test/project/_git/repo.version" > actual &&
391439 echo " HTTP/1.1" > expect &&
392- test_cmp expect actual &&
440+ test_cmp expect actual
441+ '
442+
443+ test_expect_success ' verify http.< url> .version=HTTP/1.1 for visualstudio.com URLs' '
444+ test_when_finished rm -rf vso-test &&
445+
446+ # Create a test repository
447+ git init vso-test &&
448+
449+ # Set VSO URL as remote
450+ git -C vso-test remote add origin https://contoso.visualstudio.com/project/_git/repo &&
451+
452+ # Run scalar reconfigure
453+ scalar reconfigure vso-test &&
454+
455+ # Verify URL-specific HTTP version setting
456+ git -C vso-test config " http.https://contoso.visualstudio.com/project/_git/repo.version" > actual &&
457+ echo " HTTP/1.1" > expect &&
458+ test_cmp expect actual
459+ '
393460
394461 second=$(git rev-parse --verify second:second.t) &&
395462 (
0 commit comments