Fossil SCM

In the "fossil server --repolist" command, to not accept ".fossil" as a valid fossil repository. Require at least one character before the ".".

drh 2015-06-26 17:48 trunk
Commit ceeb1c331bdb7967aa7dcadcf9580fda42017e0c
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -1457,11 +1457,11 @@
14571457
blob_init(&base, g.zRepositoryName, -1);
14581458
sqlite3_open(":memory:", &g.db);
14591459
db_multi_exec("CREATE TABLE sfile(x TEXT);");
14601460
db_multi_exec("CREATE TABLE vfile(pathname);");
14611461
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'");
14631463
n = db_int(0, "SELECT count(*) FROM sfile");
14641464
if( n>0 ){
14651465
Stmt q;
14661466
@ <html>
14671467
@ <head>
14681468
--- 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

Keyboard Shortcuts

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