Fossil SCM
Make repository listing works in windows when doing "fossil all server".
Commit
0a473cd5533f5bb22ead6afa508b339cd5705487cdea056e243db9f43f696e6d
Parent
50ba8d8d0584ba6…
1 file changed
+4
+4
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3572,10 +3572,14 @@ | ||
| 3572 | 3572 | g.httpSSLConn = 0; |
| 3573 | 3573 | } |
| 3574 | 3574 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3575 | 3575 | |
| 3576 | 3576 | #else /* WIN32 */ |
| 3577 | + find_server_repository(2, 0); | |
| 3578 | + if( fossil_strcmp(g.zRepositoryName,"/")==0 ){ | |
| 3579 | + allowRepoList = 1; | |
| 3580 | + } | |
| 3577 | 3581 | /* Win32 implementation */ |
| 3578 | 3582 | if( allowRepoList ){ |
| 3579 | 3583 | flags |= HTTP_SERVER_REPOLIST; |
| 3580 | 3584 | } |
| 3581 | 3585 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3582 | 3586 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3572,10 +3572,14 @@ | |
| 3572 | g.httpSSLConn = 0; |
| 3573 | } |
| 3574 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3575 | |
| 3576 | #else /* WIN32 */ |
| 3577 | /* Win32 implementation */ |
| 3578 | if( allowRepoList ){ |
| 3579 | flags |= HTTP_SERVER_REPOLIST; |
| 3580 | } |
| 3581 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3582 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3572,10 +3572,14 @@ | |
| 3572 | g.httpSSLConn = 0; |
| 3573 | } |
| 3574 | #endif /* FOSSIL_ENABLE_SSL */ |
| 3575 | |
| 3576 | #else /* WIN32 */ |
| 3577 | find_server_repository(2, 0); |
| 3578 | if( fossil_strcmp(g.zRepositoryName,"/")==0 ){ |
| 3579 | allowRepoList = 1; |
| 3580 | } |
| 3581 | /* Win32 implementation */ |
| 3582 | if( allowRepoList ){ |
| 3583 | flags |= HTTP_SERVER_REPOLIST; |
| 3584 | } |
| 3585 | if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){ |
| 3586 |