Fossil SCM
Do not attempt to access the check-out database from the server.
Commit
30da8e8b087d0ede6601791c5a919cf1f9a7871c
Parent
e07e1f662e06384…
1 file changed
+1
-2
+1
-2
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -400,12 +400,11 @@ | ||
| 400 | 400 | #else |
| 401 | 401 | caseSensitive = 1; /* Unix */ |
| 402 | 402 | #endif |
| 403 | 403 | caseSensitive = db_get_boolean("case-sensitive",caseSensitive); |
| 404 | 404 | } |
| 405 | - if( !caseSensitive ){ | |
| 406 | - db_must_be_within_tree(); | |
| 405 | + if( !caseSensitive && g.localOpen ){ | |
| 407 | 406 | db_multi_exec( |
| 408 | 407 | "CREATE INDEX IF NOT EXISTS %s.vfile_nocase " |
| 409 | 408 | " ON vfile(pathname COLLATE nocase)", |
| 410 | 409 | db_name("localdb") |
| 411 | 410 | ); |
| 412 | 411 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -400,12 +400,11 @@ | |
| 400 | #else |
| 401 | caseSensitive = 1; /* Unix */ |
| 402 | #endif |
| 403 | caseSensitive = db_get_boolean("case-sensitive",caseSensitive); |
| 404 | } |
| 405 | if( !caseSensitive ){ |
| 406 | db_must_be_within_tree(); |
| 407 | db_multi_exec( |
| 408 | "CREATE INDEX IF NOT EXISTS %s.vfile_nocase " |
| 409 | " ON vfile(pathname COLLATE nocase)", |
| 410 | db_name("localdb") |
| 411 | ); |
| 412 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -400,12 +400,11 @@ | |
| 400 | #else |
| 401 | caseSensitive = 1; /* Unix */ |
| 402 | #endif |
| 403 | caseSensitive = db_get_boolean("case-sensitive",caseSensitive); |
| 404 | } |
| 405 | if( !caseSensitive && g.localOpen ){ |
| 406 | db_multi_exec( |
| 407 | "CREATE INDEX IF NOT EXISTS %s.vfile_nocase " |
| 408 | " ON vfile(pathname COLLATE nocase)", |
| 409 | db_name("localdb") |
| 410 | ); |
| 411 |