Diff
Not logged in

Differences From:

File src/main.c part of check-in [6aff11f03f] - Show an error if unrecognized command-line options appear on the commit command. Also add the (undocumented) "omit-ci-sig" configuration option on the database. Setting omit-ci-sig omits the PGP signature on check-in. by drh on 2007-08-03 23:30:52. [view]

To:

File src/main.c part of check-in [f5e8b1d736] - Merge in and correct the changes to the new repository initialization. Also fix other misc bugs seen while testing. by drh on 2007-08-04 00:08:17. [view]

@@ -546,8 +546,9 @@
 void cmd_http(void){
   if( g.argc!=2 && g.argc!=3 ){
     cgi_panic("no repository specified");
   }
+  g.cgiPanic = 1;
   if( g.argc==3 ){
     db_open_repository(g.argv[2]);
   }else{
     db_must_be_within_tree();
@@ -575,12 +576,17 @@
   }else{
     iPort = 8080;
   }
   if( g.argc!=2 && g.argc!=3 ) usage("?REPOSITORY?");
+  if( g.argc==2 ){
+    db_must_be_within_tree();
+    db_close();
+  }
   cgi_http_server(iPort);
   if( g.fHttpTrace ){
     fprintf(stderr, "====== SERVER pid %d =======\n", getpid());
   }
+  g.cgiPanic = 1;
   if( g.argc==2 ){
     db_must_be_within_tree();
   }else{
     db_open_repository(g.argv[2]);