dschens_wa
dschens_wa

Reputation: 1

Gerrit Code Review - How to download a file with wget using http password?

I'd like to donwload a single file from a gerrit server which a no read access for anonymous users.
Therefore I set the http password for the user and tried something like:
wget --user=user --password=passwd "http://example.com:8443/gitweb/?p=...;a=blob_plain;f=...;hb=refs/heads/master"

HTTP request sent, awaiting response... 401 Unauthorized
Unknown authentication scheme.


Is this possible at all using the http password generated in the user settings of gerrit?

Thank you!

Upvotes: 0

Views: 1477

Answers (2)

nir
nir

Reputation: 1

the following works for me:

http://your gerrit:8080/gitweb?p=your repository.git;a=blob_plain;f=path/to/file -O file

Upvotes: 0

barbasa
barbasa

Reputation: 675

Yes, it possible to use the HTTP password generated in the user setting. Have a look at the Authentication documentation here.

However, Gerrit Code Review doesn't allow you to download a single file (unless you have a particular plugin installed to do so). Are you sure downloading a single file is what you want?

Upvotes: 1

Related Questions