1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #3225 invalid

Commanline download compressed tip

Esa Heiskanen
created an issue

We would like to use mercurial for web development, but we can't (and don't want to) install mercurial on a shared host. We try to use wget as mentioned here, but I get error. Credentials and link are correct (modified for security).

Is there easy way just to download snapshot of the latest revision?

$ wget --verbose --user=XXXXX --password=YYYYY https://bitbucket.org/ekku/REPO/get/tip.zip

--2011-10-31 18:27:10--
https://bitbucket.org/ekku/REPO/get/tip.zip Resolving bitbucket.org..., Connecting to bitbucket.org||:443... connected.

HTTP request sent, awaiting response... 401 UNAUTHORIZED Failed writing HTTP request: Bad file descriptor. Retrying.

Comments (8)

  1. Dylan Etkin

    Hi Esa,

    We don't actually support basic auth for downloads of source bundles.

    You need to use digest auth. Also, from what I understand, wget has a bug with its digest auth implementation.

    You can use curl with the --digest flag and the -o flag to specify your output file.



  2. Jesse Yowell staff


    Since we use HTTPS I don't think it's necessary to use the --digest flag with curl. This was used more for hiding authorization credentials over HTTP. We've nuked --digest support for now, so just use the same command without --digest

  3. Log in to comment