的Mac OS X 10.6.6服務器 Git版本的客戶端和服務器:1.7.3.5GIT克隆通過HTTP失敗(捲曲結果= 22,HTTP_CODE 401)
返回錯誤是:
Chris-Muenchs-Mac-Book-Pro:Desktop cmuench$ git clone http://example.com/is.git
Cloning into is...
Username:
Password:
error: The requested URL returned error: 401 (curl_result = 22, http_code = 401, sha1 = 8fbb19449c4388ae4b51594af3507bfd44c567d7)
error: Unable to find 8fbb19449c4388ae4b51594af3507bfd44c567d7 under http://example.com/is.git
Cannot obtain needed commit 8fbb19449c4388ae4b51594af3507bfd44c567d7
while processing commit 129e0ba31589356b9c4326907ddf7e11d7b6be18.
error: Fetch failed.
以上引用的commit sha1存在於回購站中,我可以通過文件系統克隆,但不能通過http或https進行克隆。
這裏是我的Apache設置:(WebDAV是ON)(本段上面定義的)
<Location "/is.git">
AuthType Basic
<Limit GET HEAD OPTIONS CONNECT POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group development
</Limit>
AuthName "is.git"
</Location>
關於如何解決此問題的任何想法?
我說我的用戶名,並能夠克隆,但現在我不能推: PUT錯誤:捲曲結果= 22,HTTP代碼= 403只 –