Ticket Change Details
Not logged in
Overview

Artifact ID: e2f22938531cd2b963830f19c4639873847b5a99
Ticket: 68c7f7bee9513021546efac9166a70674f663e0b
remote-url command doesn't persist username and password
User & Date: rwilson 2009-10-07 00:17:54
Changes

  1. comment changed to:
    the remote-url command should preserve the username and password that are embedded in the url, but it does not.  my system is a windows system, if that makes a difference.  however, i think the problem is in remote_url_cmd() where it stores g.urlCanonical, which strips the usr:pwd@ from the url.   process_sync_args(), by comparison, will take <nowiki>arg[2]</nowiki> over g.urlCanonical as long as the url does not refer to a file.  i think remote_url_cmd() should do the same.
    <pre>
    PS C:\fossil\fossil> fossil remote-url --show-pw
    http://rwilson:password@www.fossil-scm.org/
    PS C:\fossil\fossil> fossil remote-url http://a:b@www.fossil-scm.org/
    http://www.fossil-scm.org/
    PS C:\fossil\fossil> fossil remote-url --show-pw
    http://www.fossil-scm.org/
    PS C:\fossil\fossil> fossil ver
    This is fossil version [37f295c310] 2009-09-21 19:19:20 UTC
    PS C:\fossil\fossil>
    </pre>
    
  2. foundin changed to: "37f295c310"
  3. private_contact changed to: "2359089ef753bc96e12743e299243d5232c749fa"
  4. severity changed to: "Minor"
  5. status changed to: "Open"
  6. title changed to:
    remote-url command doesn't persist username and password
    
  7. type changed to: "Code_Defect"