gpt4 book ai didi

mercurial - 克隆、拉取 Mercurial 存储库时出现 404 错误

转载 作者:行者123 更新时间:2023-12-02 11:26:30 25 4
gpt4 key购买 nike

我这里有一个存储库 http://repos.joomlaguruteam.com/

我使用hgweb.cgi这是我的 hgweb.config 文件

[web]
baseurl =
#allowpull = true
allow_push = *
push_ssl = false
allow_archive = bz2 gz zip

[paths]
/ = /home/repos/*

我可以浏览它,但无法克隆它。每次我克隆它时都会出现此错误

hg clone http://repos.joomlaguruteam.com/hello
destination directory: hello
requesting all changes
abort: HTTP Error 404: Not Found

并且访问日志有该内容

115.5.95.59 - - [10/Feb/2011:04:20:33 -0600] "GET /hello?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" 200 1 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=heads HTTP/1.1" 200 41 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" 404 597 "-" "mercurial/proto-1.0"

但我可以使用未压缩传输来克隆它

hg clone --uncompressed http://repos.joomlaguruteam.com/hello

但现在我不知道如何从存储库中提取它,因为当我从它提取时。它和克隆有同样的问题。也用于传入。

这是我的 .htaccess 文件

Options +ExecCGI
RewriteEngine On
#write base depending on where the base url lives
#RewriteBase /hg
RewriteRule ^$ hgweb.cgi [L]
# Send requests for files that exist to those files.
RewriteCond %{REQUEST_FILENAME} !-f
# Send requests for directories that exist to those directories.
RewriteCond %{REQUEST_FILENAME} !-d
# Send requests to hgweb.cgi, appending the rest of url.
RewriteRule (.*) hgweb.cgi/$1 [QSA,L]

我可以将修订推送到存储库,但无法从中提取。

是否有任何配置或其他东西可以使其工作。

非常感谢您对我的帮助。

谢谢,元

最佳答案

好的,我已经发现问题了。

注释掉/home/my_username/.hgrc 中的以下行

#verbose = True

更多详细信息here

关于mercurial - 克隆、拉取 Mercurial 存储库时出现 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4969858/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com