cgit 即使使用 enable-git-config=0 也扫描回购所有者
cgit scan for repo owner even with enable-git-config=0
我安装了 cgit,现在可以通过浏览器访问我的 git 存储库。
我有超过 5000 个回购。
我使用扫描选项,每次我在浏览器中单击任何内容时,cgit 扫描所有存储库以查找存储库所有者。它使它非常慢。我在 cgit 文件中禁用了 git 所有者,但它没有帮助。这是我的 cgitrc:
的一部分
enable-git-config=0
enable-gitweb-owner=0
remove-suffix=1
scan-path=/opt/projects/git
这是我在浏览我的存储库时在日志文件中看到的内容:
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7250/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7251/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7254/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7253/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7255/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7256/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7257/: Success (0)
等等。我如何告诉 git 不要查找所有者信息?
谢谢
据我了解 the source code cgit
is trying to get the owner of the repo from /etc/passwd
calling getpwuid 在 repo 的根目录上。
屋主在/etc/passwd
吗?我认为 enable-gitweb-owner
无法控制。
也许你应该试试 enable-index-owner https://git.zx2c4.com/cgit/tree/cgitrc.5.txt
enable-index-owner:
Flag which, when set to "1", will make cgit display the owner of
each repo in the repository index. Default value: "1".
我安装了 cgit,现在可以通过浏览器访问我的 git 存储库。 我有超过 5000 个回购。
我使用扫描选项,每次我在浏览器中单击任何内容时,cgit 扫描所有存储库以查找存储库所有者。它使它非常慢。我在 cgit 文件中禁用了 git 所有者,但它没有帮助。这是我的 cgitrc:
的一部分enable-git-config=0
enable-gitweb-owner=0
remove-suffix=1
scan-path=/opt/projects/git
这是我在浏览我的存储库时在日志文件中看到的内容:
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7250/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7251/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7254/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7253/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7255/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7256/: Success (0)
Jan 25 11:36:50 ht-vm-cgit rc.local[1033]: Error reading owner-info for /opt/projects/git/7257/: Success (0)
等等。我如何告诉 git 不要查找所有者信息?
谢谢
据我了解 the source code cgit
is trying to get the owner of the repo from /etc/passwd
calling getpwuid 在 repo 的根目录上。
屋主在/etc/passwd
吗?我认为 enable-gitweb-owner
无法控制。
也许你应该试试 enable-index-owner https://git.zx2c4.com/cgit/tree/cgitrc.5.txt
enable-index-owner:
Flag which, when set to "1", will make cgit display the owner of
each repo in the repository index. Default value: "1".