Diff
Not logged in

Differences From:

File src/clone.c part of check-in [dbda8d6ce9] - Initial check-in of m1 sources. by drh on 2007-07-21 14:10:57. [view]

To:

File src/clone.c part of check-in [8dbee6731d] - The push, pull, and sync commands remember the last server and reuse it if the URL argument is omitted. Sync via network only now. by drh on 2007-07-31 01:34:45. [view]

@@ -48,8 +48,11 @@
   db_open_repository(g.argv[3]);
   user_select();
   db_set("content-schema", CONTENT_SCHEMA);
   db_set("aux-schema", AUX_SCHEMA);
+  if( !g.urlIsFile ){
+    db_set("last-sync-url", g.argv[2]);
+  }
   db_multi_exec(
     "INSERT INTO config(name,value) VALUES('server-code', hex(randomblob(20)));"
   );
    if( g.urlIsFile ){