开发者

The project disappear from gitweb after a git push

I use gitolite to host my source code, and setup a web开发者_StackOverflow中文版site using gitweb to display all my projects. At the beginning, all projects are shown correctly via gitweb, however, after I modified one project and do a git push, it disappeared immediately from the project list.

Every project, whenever I do a git push on it, it will disappear from the project list of the gitweb. Then if I do a "git clone --bare" of that project and replace the original one, it will be back in the project again...

Anyone encounter the same problem?

p.s. I make a "git clone --bare" and do a "git push", then diff it with the original one, what I get is:

Only in test.git/objects: 86 Only in test.git/objects: af Only in test.git/objects: f4 Only in test.git/refs/heads: master

a new file with master's commit id is created.


It depends:

  • how you did the integration of gitweb with gitolite (see "Interfacing with External Tools"),
  • what exact R rights you did specify for your projects: gitweb cannot be the only user authorized (see the admin doc).

"disappear" means the authentication you did enter at the Apache level isn't one of the authorized reader.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜