On Mon, Feb 6, 2012 at 09:24, Leo Razoumov <[email protected]> wrote:
> Hi Richard,
> It seems that clone/push/pull over ssh ignore ssh://USER:PASSWORD
> settings and always connect to a remote fossil end as "nobody".

Richard,
Thank you very much for pushing a prompt fix to the trunk [a928c89cb18].
It solves SSH authentication problem very elegantly. If one has ssh
access to the repository then user privileges are mute anyway, for one
can simply copy the whole repository file from the remote to a local
host.

Along the same lines I should be able to clone private branches if my
source URL is a regular file. Unfortunately, as it stands now
clone_cmd function always calls delete_private_content() when the
source URL is a file.
Please, find below a simple patch which preserves private content if
clone is called with option --private.

----%<--------%<--------%<--------%<----
Index: src/clone.c
==================================================================
--- src/clone.c~0   2012-02-06 17:38:58.000000000 -0500
+++ src/clone.c 2012-02-06 17:19:49.000000000 -0500
@@ -119,11 +119,13 @@ void clone_cmd(void){
       " VALUES('server-code', lower(hex(randomblob(20))),now());"
       "REPLACE INTO config(name,value,mtime)"
       " VALUES('last-sync-url', '%q',now());",
       g.urlCanonical
     );
-    delete_private_content();
+    if( !bPrivate ){
+      delete_private_content();
+    }
     shun_artifacts();
     db_create_default_users(1, zDefaultUser);
     if( zDefaultUser ){
       g.zLogin = zDefaultUser;
     }else{

----%<--------%<--------%<--------%<----

--Leo--
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to