No repositories found

2016-09-28 Thread Gary Yang
Hi,

Just realized that my previous email format got messed up. I resend it. Sorry. 
Can someone help?
After I installed and configure cgit, gitolite and apache, I got "No 
repositories found" when I tried to open page, http://servergit/cgit.
Errors in /var/log/httpd/error_log
[cgi:error] [pid 27680] [client 10.76.6.235:42188] AH01215: Error opening 
projectsfile /home/git/projects.list: Permission denied (13)


/etc/cgitrc:
enable-git-config=1project-list=/home/git/projects.listscan-path=/home/git/repositories
File and folder permissions:
-rw-r--r--. 1  git  git 61  Sep 26 16:54/home/git/projects.list
drwxr-xr-x. 17 git  git 4096Sep 28 11:53git/
drwxr-xr-x.  5 root root      41 Sep 6 16:38home/
groups gitgit : git root apache
groups apacheapache : apache root git
groups rootroot : root git apache
I am clueless why it complains permission denied.

I copied projects.list to /tmp/projects.list and changed cgitrc to
project-list=/tmp/projects.list

ls -l  /tmp/projects.list

-rwxrwxrwx. 1 git  git      61 Sep 28 12:13 projects.list
drwxrwxrwt.  13 root root   4096 Sep 28 14:04 /tmp


Then, I got,
[cgi:error] [pid 27681] [client 10.76.6.235:44747] AH01215: Error opening 
projectsfile /tmp/projects.list: No such file or directory


cat /tmp/projects.listbuild-scripts.gitbuild-scripts-test.gittesting.git
I do not understand why it complains "No such file or directory".

ps -ef | grep httpdroot     27661     1  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUND
apache   27679 27661  0 11:35 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   27680 27661  0 11:35 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   27681 27661  0 11:35 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache   27682 27661  0 11:35 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND



Can someone help?



Thanks,



Gary

___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


cgit: No repositories found

2016-09-28 Thread Gary Yang
Hi,
After I installed and configure cgit, gitolite and apache, I got "No 
repositories found" when I tried to open page, http://servergit/cgit.
Errors in /var/log/httpd/error_log
[cgi:error] [pid 27680] [client 10.76.6.235:42188] AH01215: Error opening 
projectsfile /home/git/projects.list: Permission denied (13)


/etc/cgitrc:
enable-git-config=1project-list=/home/git/projects.list
scan-path=/home/git/repositories
File and folder permissions:
-rw-r--r--. 1 git git 61 Sep 26 16:54 /home/git/projects.list
drwxr-xr-x. 17 git     git     4096 Sep 28 11:53 git/
drwxr-xr-x.   5 root root     41 Sep  6 16:38 home/
groups gitgit : git root apache
groups apacheapache : apache root git
groups rootroot : root git apache
I am clueless why it complains permission denied.

I copied projects.list to /tmp/projects.list and changed cgitrc to
project-list=/tmp/projects.list

ls -l  /tmp/projects.list

-rwxrwxrwx. 1 git  git      61 Sep 28 12:13 projects.list
drwxrwxrwt.  13 root root   4096 Sep 28 14:04 tmp


Then, I got,
[cgi:error] [pid 27681] [client 10.76.6.235:44747] AH01215: Error opening 
projectsfile /tmp/projects.list: No such file or directory


cat /tmp/projects.listbuild-scripts.gitbuild-scripts-test.gittesting.git
I do not understand why it complains "No such file or directory".

ps -ef | grep httpdroot     27661     1  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUNDapache   27679 27661  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUNDapache   27680 27661  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUNDapache   27681 27661  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUNDapache   27682 27661  0 11:35 ?        00:00:00 
/usr/sbin/httpd -DFOREGROUND


Can someone help?


Thanks,


Gary


___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: Development Flow Improvements

2016-09-28 Thread Ferry Huberts



On 28/09/16 01:27, Jason A. Donenfeld wrote:

Hi Jamie,

I won't force commit on master, obviously (well, I've violated this in
the past, but don't intend to in the future). But I'd likely rebase
for-jason branches when merging if that makes the merge strategy



THis should preferably avoided; let the owner of the branch do that 
rebase or let him merge master into his branch first. That way the guy 
that knows what is going on the branch will handle the conflicts.


Then you can merge to master.
These merges should always be without conflict.


easier. The for-jason branches will be ephemeral; after I merge to
master, they'll be deleted. Here's the output from this process I
carried out earlier today, to give a better impression.

Does that seem reasonable, or is there some common edge case I'm neglecting?

Regards,
Jason

zx2c4@thinkpad ~/Projects/cgit $ git pull
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 23 (delta 18), reused 0 (delta 0)
Unpacking objects: 100% (23/23), done.
From ssh://git.zx2c4.com/cgit
* [new branch]  ch/css-highlight-table-rows ->
origin/ch/css-highlight-table-rows
* [new branch]  ch/for-jason-> origin/ch/for-jason
* [new branch]  ch/git-2-10-0   -> origin/ch/git-2-10-0
zx2c4@thinkpad ~/Projects/cgit $ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
zx2c4@thinkpad ~/Projects/cgit $ git merge origin/ch/for-jason
Updating ff9893a..11695a5
Fast-forward
Makefile|  2 +-
cgit.c  |  2 +-
cgit.h  |  8 
git |  2 +-
shared.c| 28 ++--
ui-diff.c   | 74
+-
ui-diff.h   |  4 ++--
ui-log.c|  2 +-
ui-ssdiff.c |  4 ++--
9 files changed, 63 insertions(+), 63 deletions(-)
zx2c4@thinkpad ~/Projects/cgit $ git push
Total 0 (delta 0), reused 0 (delta 0)
To ssh://git.zx2c4.com/cgit
  ff9893a..11695a5  master -> master
zx2c4@thinkpad ~/Projects/cgit $ git push origin :ch/for-jason
To ssh://git.zx2c4.com/cgit
- [deleted] ch/for-jason
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit



--
Ferry Huberts
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit