Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The project disappear from gitweb after a git push

I use gitolite to host my source code, and setup a website 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.

like image 364
Vincent Avatar asked Mar 07 '11 05:03

Vincent


1 Answers

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.

like image 81
VonC Avatar answered Oct 17 '22 17:10

VonC