GitWebでリポジトリが404になってしまう

ふとGitWebを起動したら404になって困りました.

$ git instaweb --httpd webrick

gitweb404

$ w3m -dump http://127.0.0.1:1234/
]>
gitprojects /


404 - No projects found
OPML TXT

いくつかのリポジトリで試すと,駄目なのは自分のものだけのようでcloneした他の人の作ったものは動いていそうです.自分おリポジトリに何かが足りない?

と思ったのですが,ddgで検索すると以下のページを見つけました.

Found a likely cause while writing the question: Cloning the repository to a directory without the @ character in the name fixed it.

ディレクトリに@が含まれていると駄目のようです.リポジトリを@の含まれていないところにコピーするとうまく動きました.

$ pwd | grep -o '@'
@
$ git instaweb --httpd webrick --stop
$ cp -a ../05 `mktemp -d`
$ cd /tmp/tmp.LjVifz85dp/05
$ git instaweb --httpd webrick

自分のリポジトリは@の含まれるパスの下にあって,他のcloneしたリポジトリは@の含まれないパスの下にあったので動いていたということのようでした.

環境
$ dpkg-query -W git ruby-webrick
git     1:2.39.2-1.1
ruby-webrick    1.8.1-1
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
$ arch
x86_64

コメントを残す

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.