I'm trying to use Git over HTTP but I'm getting the error
[Wed Apr 06 13:35:15.208592 2016] [cgi:error] [pid 6821] [client ...] 
AH01215: Not a git repository: '/var/git/repositories/my-project.git'

On the client side I'm trying this:

git clone http://myhost.com/git/my-project.git/
Cloning into 'my-project'...
fatal: repository 'http://myhost.com/git/my-project.git/' not found

On the server side:

The Apache Server is the version 2.4 and It has this configuration:
SetEnv GIT_PROJECT_ROOT /var/git/repositories
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/

<Directory "/usr/lib/git-core">
    Options +ExecCGI
    Require all granted

The project root rirectory /var/git/repositories has the my-project.git 
directory that was initialized with the command git --bare init 
my-project.git. I also change the owner of the my-project.git directory to 
be the same as apache, so, chown -R apache:apache 

Could you please help me figure out what I'm doing wrong? What I missed?

my git version is 1.9.1


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to