Fossil SCM

Fix the "fossil open" command so that it honors global settings.

drh 2022-04-15 12:41 trunk
Commit 24420b4e638d0b5cddd0427b811aa981a3139f4681026948441ba3217608896b
1 file changed +1
+1
--- src/db.c
+++ src/db.c
@@ -3756,10 +3756,11 @@
37563756
fossil_fatal("the --repodir option only makes sense if the REPOSITORY "
37573757
"argument is a URI that begins with http:, https:, ssh:, "
37583758
"or file:");
37593759
}
37603760
3761
+ db_open_config(0,0);
37613762
db_open_repository(zRepo);
37623763
37633764
/* Figure out which revision to open. */
37643765
if( !emptyFlag ){
37653766
if( g.argc==4 ){
37663767
--- src/db.c
+++ src/db.c
@@ -3756,10 +3756,11 @@
3756 fossil_fatal("the --repodir option only makes sense if the REPOSITORY "
3757 "argument is a URI that begins with http:, https:, ssh:, "
3758 "or file:");
3759 }
3760
 
3761 db_open_repository(zRepo);
3762
3763 /* Figure out which revision to open. */
3764 if( !emptyFlag ){
3765 if( g.argc==4 ){
3766
--- src/db.c
+++ src/db.c
@@ -3756,10 +3756,11 @@
3756 fossil_fatal("the --repodir option only makes sense if the REPOSITORY "
3757 "argument is a URI that begins with http:, https:, ssh:, "
3758 "or file:");
3759 }
3760
3761 db_open_config(0,0);
3762 db_open_repository(zRepo);
3763
3764 /* Figure out which revision to open. */
3765 if( !emptyFlag ){
3766 if( g.argc==4 ){
3767

Keyboard Shortcuts

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