Fossil SCM
Add support for --extroot on windows.
Commit
8aaaa4f5333bba542ce3b920d6279a927355b29dd262ade92c4fa1a70552b1e4
Parent
50f61b7ad1b6518…
1 file changed
+8
-2
+8
-2
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -539,14 +539,16 @@ | ||
| 539 | 539 | blob_zero(&options); |
| 540 | 540 | if( PB("HTTPS") ){ |
| 541 | 541 | blob_appendf(&options, " --https"); |
| 542 | 542 | } |
| 543 | 543 | if( zBaseUrl ){ |
| 544 | - blob_appendf(&options, " --baseurl %s", zBaseUrl); | |
| 544 | + blob_appendf(&options, " --baseurl "); | |
| 545 | + blob_append_escaped_arg(&options, zBaseUrl); | |
| 545 | 546 | } |
| 546 | 547 | if( zNotFound ){ |
| 547 | - blob_appendf(&options, " --notfound %s", zNotFound); | |
| 548 | + blob_appendf(&options, " --notfound "); | |
| 549 | + blob_append_escaped_arg(&options, zNotFound); | |
| 548 | 550 | } |
| 549 | 551 | if( zFileGlob ){ |
| 550 | 552 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 551 | 553 | } |
| 552 | 554 | if( g.useLocalauth ){ |
| @@ -556,10 +558,14 @@ | ||
| 556 | 558 | blob_appendf(&options, " --th-trace"); |
| 557 | 559 | } |
| 558 | 560 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 559 | 561 | blob_appendf(&options, " --repolist"); |
| 560 | 562 | } |
| 563 | + if( g.zExtRoot && g.zExtRoot[0] ){ | |
| 564 | + blob_appendf(&options, " --extroot"); | |
| 565 | + blob_append_escaped_arg(&options, g.zExtRoot); | |
| 566 | + } | |
| 561 | 567 | zSkin = skin_in_use(); |
| 562 | 568 | if( zSkin ){ |
| 563 | 569 | blob_appendf(&options, " --skin %s", zSkin); |
| 564 | 570 | } |
| 565 | 571 | #if USE_SEE |
| 566 | 572 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -539,14 +539,16 @@ | |
| 539 | blob_zero(&options); |
| 540 | if( PB("HTTPS") ){ |
| 541 | blob_appendf(&options, " --https"); |
| 542 | } |
| 543 | if( zBaseUrl ){ |
| 544 | blob_appendf(&options, " --baseurl %s", zBaseUrl); |
| 545 | } |
| 546 | if( zNotFound ){ |
| 547 | blob_appendf(&options, " --notfound %s", zNotFound); |
| 548 | } |
| 549 | if( zFileGlob ){ |
| 550 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 551 | } |
| 552 | if( g.useLocalauth ){ |
| @@ -556,10 +558,14 @@ | |
| 556 | blob_appendf(&options, " --th-trace"); |
| 557 | } |
| 558 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 559 | blob_appendf(&options, " --repolist"); |
| 560 | } |
| 561 | zSkin = skin_in_use(); |
| 562 | if( zSkin ){ |
| 563 | blob_appendf(&options, " --skin %s", zSkin); |
| 564 | } |
| 565 | #if USE_SEE |
| 566 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -539,14 +539,16 @@ | |
| 539 | blob_zero(&options); |
| 540 | if( PB("HTTPS") ){ |
| 541 | blob_appendf(&options, " --https"); |
| 542 | } |
| 543 | if( zBaseUrl ){ |
| 544 | blob_appendf(&options, " --baseurl "); |
| 545 | blob_append_escaped_arg(&options, zBaseUrl); |
| 546 | } |
| 547 | if( zNotFound ){ |
| 548 | blob_appendf(&options, " --notfound "); |
| 549 | blob_append_escaped_arg(&options, zNotFound); |
| 550 | } |
| 551 | if( zFileGlob ){ |
| 552 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 553 | } |
| 554 | if( g.useLocalauth ){ |
| @@ -556,10 +558,14 @@ | |
| 558 | blob_appendf(&options, " --th-trace"); |
| 559 | } |
| 560 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 561 | blob_appendf(&options, " --repolist"); |
| 562 | } |
| 563 | if( g.zExtRoot && g.zExtRoot[0] ){ |
| 564 | blob_appendf(&options, " --extroot"); |
| 565 | blob_append_escaped_arg(&options, g.zExtRoot); |
| 566 | } |
| 567 | zSkin = skin_in_use(); |
| 568 | if( zSkin ){ |
| 569 | blob_appendf(&options, " --skin %s", zSkin); |
| 570 | } |
| 571 | #if USE_SEE |
| 572 |