Fossil SCM
In the "fossil server --repolist" command, to not accept ".fossil" as a valid fossil repository. Require at least one character before the ".".
Commit
ceeb1c331bdb7967aa7dcadcf9580fda42017e0c
Parent
c048aac095465a9…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1457,11 +1457,11 @@ | ||
| 1457 | 1457 | blob_init(&base, g.zRepositoryName, -1); |
| 1458 | 1458 | sqlite3_open(":memory:", &g.db); |
| 1459 | 1459 | db_multi_exec("CREATE TABLE sfile(x TEXT);"); |
| 1460 | 1460 | db_multi_exec("CREATE TABLE vfile(pathname);"); |
| 1461 | 1461 | vfile_scan(&base, blob_size(&base), 0, 0, 0); |
| 1462 | - db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*.fossil'"); | |
| 1462 | + db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*[^/.].fossil'"); | |
| 1463 | 1463 | n = db_int(0, "SELECT count(*) FROM sfile"); |
| 1464 | 1464 | if( n>0 ){ |
| 1465 | 1465 | Stmt q; |
| 1466 | 1466 | @ <html> |
| 1467 | 1467 | @ <head> |
| 1468 | 1468 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1457,11 +1457,11 @@ | |
| 1457 | blob_init(&base, g.zRepositoryName, -1); |
| 1458 | sqlite3_open(":memory:", &g.db); |
| 1459 | db_multi_exec("CREATE TABLE sfile(x TEXT);"); |
| 1460 | db_multi_exec("CREATE TABLE vfile(pathname);"); |
| 1461 | vfile_scan(&base, blob_size(&base), 0, 0, 0); |
| 1462 | db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*.fossil'"); |
| 1463 | n = db_int(0, "SELECT count(*) FROM sfile"); |
| 1464 | if( n>0 ){ |
| 1465 | Stmt q; |
| 1466 | @ <html> |
| 1467 | @ <head> |
| 1468 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1457,11 +1457,11 @@ | |
| 1457 | blob_init(&base, g.zRepositoryName, -1); |
| 1458 | sqlite3_open(":memory:", &g.db); |
| 1459 | db_multi_exec("CREATE TABLE sfile(x TEXT);"); |
| 1460 | db_multi_exec("CREATE TABLE vfile(pathname);"); |
| 1461 | vfile_scan(&base, blob_size(&base), 0, 0, 0); |
| 1462 | db_multi_exec("DELETE FROM sfile WHERE x NOT GLOB '*[^/.].fossil'"); |
| 1463 | n = db_int(0, "SELECT count(*) FROM sfile"); |
| 1464 | if( n>0 ){ |
| 1465 | Stmt q; |
| 1466 | @ <html> |
| 1467 | @ <head> |
| 1468 |