我想从gerrit服务器加载一个文件,该文件对匿名用户没有读取权限。
因此,我为用户设置了http密码,并尝试了如下所示:
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.
这是否可能使用在gerrit的用户设置中生成的http密码?
谢谢!
发布于 2019-11-28 19:35:56
是的,可以使用在用户设置中生成的HTTP密码。查看身份验证文档这里。
但是,不允许您下载单个文件(除非您安装了一个特定的插件)。您确定要下载一个文件吗?
发布于 2021-12-08 08:16:09
以下几点对我来说是可行的:
http://your gerrit:8080/gitweb?p=your repository.git;a=blob_plain;f=path/to/file -O file
https://stackoverflow.com/questions/59093041
复制相似问题