I think the following patch will resolve the issue:

Index: src/clone.c
==================================================================
--- src/clone.c
+++ src/clone.c
@@ -131,10 +131,11 @@
   }

   zDefaultUser = find_option("admin-user","A",1);

   url_parse(g.argv[2], URL_PROMPT_PW|URL_ASK_REMEMBER_PW);
+  if( zDefaultUser==0 && g.urlUser!=0 ) zDefaultUser = g.urlUser;
   if( g.urlIsFile ){
     file_copy(g.urlName, g.argv[3]);
     db_close(1);
     db_open_repository(g.argv[3]);
     db_record_repository_filename(g.argv[3]);


Can somebody apply the patch above and test it out for me?


On Thu, Oct 17, 2013 at 11:39 AM, Stephan Beal <[email protected]>wrote:

> On Thu, Oct 17, 2013 at 5:34 PM, j. van den hoff <
> [email protected]> wrote:
>
>> why is it that after
>>
>> fossil clone 
>> http://[email protected]/**path_to_project<http://[email protected]/path_to_project>project.fossil
>>
>> it still is the user name of the local account doing the clone that is
>> defining the initial "default user"? I've stumbled over this a few times.
>> it would seem wiser to automatically create and set the default user to
>> "kirk" in this example (i.e. to the specified user name, if any (and only
>> fall back to local user name if this is not the case). otherwise, if I
>> forget to do
>>
>
> That looks like a classic case of "historical usage." i suspect most of
> those who hack on Fossil itself tend to use the same login names across
> systems (i know that's true for me and Richard, in any case). It of course
> would make better sense to use the name provided in the URL.
>
> Could i convince you to open a ticket for this?
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> "Since tyranny's the only guaranteed byproduct of those who insist on a
> perfect world, freedom will have to do." -- Bigby Wolf
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


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

Reply via email to