Fossil

Diff
Login

Diff

Differences From Artifact [781842c8ff]:

To Artifact [a637599164]:


504
505
506
507
508
509
510
511
512
513





514

515
516
517
518
519
520
521
504
505
506
507
508
509
510



511
512
513
514
515

516
517
518
519
520
521
522
523







-
-
-
+
+
+
+
+
-
+







    */
    if( g.url.isSsh                         /* This is an SSH: sync */
     && (g.url.flags & URL_SSH_EXE)==0      /* Does not have ?fossil=.... */
     && (g.url.flags & URL_SSH_RETRY)==0    /* Not retried already */
    ){
      /* Retry after flipping the SSH_PATH setting */
      transport_close(&g.url);
      if( g.fSshTrace ){
         printf("Retry after %s the PATH= argument to the SSH command\n",
                 (g.url.flags & URL_SSH_PATH)!=0 ? "removing" : "adding");
      fossil_print(
        "First attempt to run fossil on %s using SSH failed.\n"
        "Retrying %s the PATH= argument.\n",
        g.url.hostname,
        (g.url.flags & URL_SSH_PATH)!=0 ? "without" : "with"
      }
      );
      g.url.flags ^= URL_SSH_PATH|URL_SSH_RETRY;
      rc = http_exchange(pSend,pReply,mHttpFlags,0,zAltMimetype);
      if( rc==0 ){
        char *z = mprintf("use-path-for-ssh:%s", g.url.hostname);
        if( (g.url.flags & URL_SSH_PATH) ){
          db_set(z/*works-like:"x"*/, "1", 0);
        }else{