168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
** "sync", "push", or "pull" command that specifies an explicit URL.
** The default remote-url is used by auto-syncing and by "sync", "push",
** "pull" that omit the server URL.
*/
void remote_url_cmd(void){
char *zUrl;
int showPw = find_option("show-pw",0,0)!=0;
db_must_be_within_tree();
if( g.argc!=2 && g.argc!=3 ){
usage("remote-url ?URL|off?");
}
if( g.argc==3 ){
if( strcmp(g.argv[2],"off")==0 ){
db_unset("last-sync-url", 0);
}else{
|
|
|
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
** "sync", "push", or "pull" command that specifies an explicit URL.
** The default remote-url is used by auto-syncing and by "sync", "push",
** "pull" that omit the server URL.
*/
void remote_url_cmd(void){
char *zUrl;
int showPw = find_option("show-pw",0,0)!=0;
db_find_and_open_repository(1);
if( g.argc!=2 && g.argc!=3 ){
usage("remote-url ?URL|off?");
}
if( g.argc==3 ){
if( strcmp(g.argv[2],"off")==0 ){
db_unset("last-sync-url", 0);
}else{
|