Fossil SCM
Correct the open-checkout handling for the 'test-commit-warning' command.
Commit
b4a1b2fab941f8b075a898e1562c0141583f1ff9
Parent
f00a55b974949b8…
1 file changed
+1
-1
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -1636,11 +1636,11 @@ | ||
| 1636 | 1636 | int verboseFlag; |
| 1637 | 1637 | Stmt q; |
| 1638 | 1638 | noSettings = find_option("no-settings",0,0)!=0; |
| 1639 | 1639 | verboseFlag = find_option("verbose","v",0)!=0; |
| 1640 | 1640 | verify_all_options(); |
| 1641 | - db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); | |
| 1641 | + db_must_be_within_tree(); | |
| 1642 | 1642 | db_prepare(&q, |
| 1643 | 1643 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1644 | 1644 | " WHERE NOT deleted", |
| 1645 | 1645 | g.zLocalRoot, |
| 1646 | 1646 | glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")), |
| 1647 | 1647 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1636,11 +1636,11 @@ | |
| 1636 | int verboseFlag; |
| 1637 | Stmt q; |
| 1638 | noSettings = find_option("no-settings",0,0)!=0; |
| 1639 | verboseFlag = find_option("verbose","v",0)!=0; |
| 1640 | verify_all_options(); |
| 1641 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 1642 | db_prepare(&q, |
| 1643 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1644 | " WHERE NOT deleted", |
| 1645 | g.zLocalRoot, |
| 1646 | glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")), |
| 1647 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -1636,11 +1636,11 @@ | |
| 1636 | int verboseFlag; |
| 1637 | Stmt q; |
| 1638 | noSettings = find_option("no-settings",0,0)!=0; |
| 1639 | verboseFlag = find_option("verbose","v",0)!=0; |
| 1640 | verify_all_options(); |
| 1641 | db_must_be_within_tree(); |
| 1642 | db_prepare(&q, |
| 1643 | "SELECT %Q || pathname, pathname, %s, %s, %s FROM vfile" |
| 1644 | " WHERE NOT deleted", |
| 1645 | g.zLocalRoot, |
| 1646 | glob_expr("pathname", noSettings ? 0 : db_get("crnl-glob","")), |
| 1647 |