Fossil SCM
For the 3-argument version of the 'info' command, open the repository prior to recording it.
Commit
b98681739da3ba1cedbead56a60f9f93ddb3935b
Parent
42b97c229664fef…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -203,12 +203,12 @@ | ||
| 203 | 203 | /* We should be done with options.. */ |
| 204 | 204 | verify_all_options(); |
| 205 | 205 | |
| 206 | 206 | if( g.argc==3 && (fsize = file_size(g.argv[2]))>0 && (fsize&0x1ff)==0 ){ |
| 207 | 207 | db_open_config(0); |
| 208 | - db_record_repository_filename(g.argv[2]); | |
| 209 | 208 | db_open_repository(g.argv[2]); |
| 209 | + db_record_repository_filename(g.argv[2]); | |
| 210 | 210 | fossil_print("project-name: %s\n", db_get("project-name", "<unnamed>")); |
| 211 | 211 | fossil_print("project-code: %s\n", db_get("project-code", "<none>")); |
| 212 | 212 | extraRepoInfo(); |
| 213 | 213 | return; |
| 214 | 214 | } |
| 215 | 215 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -203,12 +203,12 @@ | |
| 203 | /* We should be done with options.. */ |
| 204 | verify_all_options(); |
| 205 | |
| 206 | if( g.argc==3 && (fsize = file_size(g.argv[2]))>0 && (fsize&0x1ff)==0 ){ |
| 207 | db_open_config(0); |
| 208 | db_record_repository_filename(g.argv[2]); |
| 209 | db_open_repository(g.argv[2]); |
| 210 | fossil_print("project-name: %s\n", db_get("project-name", "<unnamed>")); |
| 211 | fossil_print("project-code: %s\n", db_get("project-code", "<none>")); |
| 212 | extraRepoInfo(); |
| 213 | return; |
| 214 | } |
| 215 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -203,12 +203,12 @@ | |
| 203 | /* We should be done with options.. */ |
| 204 | verify_all_options(); |
| 205 | |
| 206 | if( g.argc==3 && (fsize = file_size(g.argv[2]))>0 && (fsize&0x1ff)==0 ){ |
| 207 | db_open_config(0); |
| 208 | db_open_repository(g.argv[2]); |
| 209 | db_record_repository_filename(g.argv[2]); |
| 210 | fossil_print("project-name: %s\n", db_get("project-name", "<unnamed>")); |
| 211 | fossil_print("project-code: %s\n", db_get("project-code", "<none>")); |
| 212 | extraRepoInfo(); |
| 213 | return; |
| 214 | } |
| 215 |