Fossil SCM

Make repository listing works in windows when doing "fossil all server".

mgagnon 2024-09-04 14:08 trunk
Commit 0a473cd5533f5bb22ead6afa508b339cd5705487cdea056e243db9f43f696e6d
1 file changed +4
+4
--- src/main.c
+++ src/main.c
@@ -3572,10 +3572,14 @@
35723572
g.httpSSLConn = 0;
35733573
}
35743574
#endif /* FOSSIL_ENABLE_SSL */
35753575
35763576
#else /* WIN32 */
3577
+ find_server_repository(2, 0);
3578
+ if( fossil_strcmp(g.zRepositoryName,"/")==0 ){
3579
+ allowRepoList = 1;
3580
+ }
35773581
/* Win32 implementation */
35783582
if( allowRepoList ){
35793583
flags |= HTTP_SERVER_REPOLIST;
35803584
}
35813585
if( win32_http_service(iPort, zAltBase, zNotFound, zFileGlob, flags) ){
35823586
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button