Macos OSX中通过HTTP的Git post接收
我的设置是:Macos OSX中通过HTTP的Git post接收,macos,apache,git,git-post-receive,Macos,Apache,Git,Git Post Receive,我的设置是: 1.OS X为Git存储运行apache服务器。 2.我的Git项目目录在这里:/Library/WebServer/Documents/CI 3.我遵循了本教程:并设置了通过HTTP的Git访问 4.我的gitrepo.conf类似于: DavLockDB "/var/www/DavLock/Lock" DavMinTimeout 28800 <Directory /Library/WebServer/Documents/CI> DAV On Deny fr
1.OS X为Git存储运行apache服务器。
2.我的Git项目目录在这里:/Library/WebServer/Documents/CI
3.我遵循了本教程:并设置了通过HTTP的Git访问
4.我的gitrepo.conf类似于:
DavLockDB "/var/www/DavLock/Lock"
DavMinTimeout 28800
<Directory /Library/WebServer/Documents/CI>
DAV On
Deny from all
AuthType Basic
AuthName "Area51 git repositories"
AuthUserFile /etc/apache2/other/htpasswd-git
AuthGroupFile /etc/apache2/other/htgroup-git
</Directory>
<Directory /Library/WebServer/Documents/CI/ci_test.git>
Allow from all
Order allow,deny
Require valid-user
<Limit GET>
Require group myproject-reader
</Limit>
<Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group myproject-writer
</Limit>
</Directory>
我得到:
error: The requested URL returned error: 403 while accessing http://username@ciserver.smt/ci_test.git/info/refs
fatal: HTTP request failed
我还做错了什么?看来您无法在webdav共享回购上运行挂钩。但是您可以使用智能HTTP协议(通过CGI包含在web服务器中),该协议可以处理钩子
有关更多详细信息,请参阅。您似乎无法在webdav共享回购上运行挂钩。但是您可以使用智能HTTP协议(通过CGI包含在web服务器中),该协议可以处理钩子
有关更多详细信息,请参阅。我已经关注了您的粘贴链接(非常感谢,因为我知道我应该关注哪个方向)。恐怕我在这里做错了什么。我将更新我的问题,我已经按照你的粘贴链接更改了设置(非常感谢,因为我知道我应该遵循哪个方向)。恐怕我在这里做错了什么。我将用更改的设置更新我的问题
git clone http://username@ciserver.smt/ci_test.git
error: The requested URL returned error: 403 while accessing http://username@ciserver.smt/ci_test.git/info/refs
fatal: HTTP request failed