git via http problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day
I have installed apache2, Webdav and git-core on my Debian.
I added next information to the apache conf
        Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
AuthUserFile /etc/apache2/users/pwd
Require valid-user
</Location>
pwd file was created by htpasswd, wich contain user test and password test.
my home/.netrc file contains
       machine localhost
       login test
       password test
And then when I type
       git push upload master
I see next errors
      error: Cannot access URL http://localhost/linter.git/, return code 22
      error: failed to push some refs to 'http://localhost/linter.git/'
In browaser all is ok, when I type http://localhost/linter.git/, user test and
password test, it shows directory on the server.
If I change apache conf to
      Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
</Location>
git starts normal:
     git push upload master
     Fetching remote heads...
     refs/
     refs/heads/
     refs/tags/
     updating 'refs/heads/master'
     from 0000000000000000000000000000000000000000
     to aa36be4c3e46e619f73faa0cea071688cb380d25

What is the problem can be?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]