darcs repository web UI and hosting app. This is the main darcsden trunk, which also runs hub.darcs.net. (https://hub.darcs.net)

#178http clone does not work on http://hub.darcs.net

darcs clone http://hub.darc.net/OWNER/REPO does not work:

$ darcs clone http://hub.darcs.net/mihaigiurgeanu/transfer-db

darcs failed:  Not a repository: http://hub.darcs.net/mihaigiurgeanu/transfer-db (HTTP 301 error 
getting http://hub.darcs.net/mihaigiurgeanu/transfer-db/_darcs/inventory)

HINT: Do you have the right URI for the repository?

HTTP requests are redirected to HTTPS which is not supported by darcs.

  • I'm not able to reproduce this. I just tried darcs clone http://hub.darcs.net/mihaigiurgeanu/transfer-db and got a copy of your repo. Has this since been fixed?

  • I tried on a Mac with darcs 12.2.0 and it worked:

    MacBook-Mihai:Projects mihaigiurgeanu$ darcs --version
    2.12.0 (release)
    MacBook-Mihai:Projects mihaigiurgeanu$ darcs clone http://hub.darcs.net/mihaigiurgeanu/transfer-db transfer-db-tmp 
    Copying patches, to get lazy repository hit ctrl-C...                        
    Finished cloning.

    But on Windows, curl flag disabled, version 12.2.5 did not work:

    C:\Users\IEUser>darcs --version
    2.12.5 (release)
    
    C:\Users\IEUser>darcs clone http://hub.darcs.net/mihaigiurgeanu/transfer-db
    
    darcs failed:  Not a repository: http://hub.darcs.net/mihaigiurgeanu/transfer-db (HTTP 301 error getting http://hub.darcs.net/mihaigiurgeanu/transfer-db/_darcs/inventory)
    
    HINT: Do you have the right URI for the repository?

    I installed version 12.2.5 on mac, and, again, it worked:

    MacBook-Mihai:~ mihaigiurgeanu$ darcs --version
    2.12.5 (release)
    MacBook-Mihai:~ mihaigiurgeanu$ darcs clone http://hub.darcs.net/mihaigiurgeanu/transfer-db transfer-db-tmp
    Copying patches, to get lazy repository hit ctrl-C...                        
    Finished cloning.                                                            

    Do you tinnk it could be a bug in darcs? Maybe related with http implementation?

    I will trace http requests for both cases to see what is different.