yuu_nkjm blog
2011-12-01(Thu) [長年日記]
[Apache][git][openSUSE] Git over http (cloneはできたがpushできず)
WebDAVの設定
Gitリポジトリの作成
GitリポジトリをWebDAV(+https)経由で公開する - yamkazu-techの日記を参考にレポジトリを作る.
cd /git/nkjm /git/repos/nkjm mkdir projects.git cd projects.git git --bare init Initialized empty Git repository in /git/repos/nkjm vi description echo "http://hoge.nkjm.info/git/nkjm/projects.git" > cloneurl printf "[gitweb]\n\towner = yuu_nkjm\n" >> config
HTTPからgitするための設定.
cp -a hooks/post-update.sample hooks/post-update chmod +x hooks/post-update git update-server-info chown -R wwwrun:www /git/repos/nkjm/projects.git
ここで,"git update-server-info"が重要.Git のリモートリポジトリから HTTP で pull するためのメモ - akihiko’s tech note
Git over httpの設定
# lv /etc/httpd/conf.d/gitweb.conf Alias /git/nkjm /git/repos/nkjm <Location "/git/nkjm"> Options Indexes DAV on AuthType Digest AuthName "xxxxxxx" AuthUserFile /hogehoge/.htdigest <Limitexcept GET HEAD PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
動作確認
git pull http://hoge.nkjm.info/git/nkjm/projects.git/ master
pullはうまくいった.
しかし,pushしようとすると以下のエラー…
git.exe push --progress "origin" master:master error: Cannot access URL http://hoge.nkjm.info/git/nkjm/projects.git/, return code 22 fatal: git-http-push failed
関連しそうな情報(githubにpushしようとしたらreturn code 22とか言われた - marblejenkaの日記)もあったけど,解決せず.
自前でGitを運用する気はいまのとこないし,HTTP経由で書き込ませたいこともどれだけあるか分からないし,今回は諦める.WebDavは便利なんだけど,昔からイジメられている気がする.
- https://www.google.co.jp/ ×995
- https://www.google.com/ ×23
- https://www.google.com/search ×2
- http://d.hatena.ne.jp/marblejenka/20121019/1350647... ×1
- http://yandex.ru/clck/jsredir?from=yandex.ru;searc... ×1
- http://search.fenrir-inc.com/?q=git webdav push er... ×1
- https://www.google.es/ ×1
- https://www.google.com.sg/ ×1
- https://www.google.fr/ ×1
- git push return code 22 ×7 / git return code 22 ×6 / git error code 22 ×5 / fatal: git-http-push failed ×5 / git push https ×4 / git-http-push failed ×2 / git http clone ×2 / push 22 git ×2 / http git push ×2 / git error: Cannot access URL ×2 / git http push ×2 / http update-server-info ×1 / git push Cannot access return code 22 git-http-push failed ×1 / git http push Cannot acccess ×1 / git push error return code 22 ×1 / return code 22 git push ×1 / htdigest.exe バッチ ×1 / git clone --recursive http ×1 / git push http code22 ×1 / Cannot access URL http://, return code 22 ×1 / return code 22 ×1 / error: Cannot access URL ×1 / +https ×1 / git-http-push failed return code 22 ×1 / git push return 22 ×1 / git push code 22 ×1 / git push http code 500 ×1 / git.exe intellij ×1 / git webdav apache ×1 / git push cannot access url ×1 / git push http ×1 / tomcat WebDAV git ×1 / git push できない Cannot access ×1 / git http ×1 / git socks ×1 / stone github ×1 / git http push failed ×1 / git push http lib_curl ×1 / return code 22 git ×1 / windowsserver pushできない git ×1 / Apach Git clone メニュー ×1 / git Limitexcept webdav ×1 / git 使い方 webdav ×1 / git サーバ 構築 windows apache ×1 / git code 22 ×1 / error: Cannot access URL return code 22 fatal git-http-push failed ×1 / error: Cannot access URL git ×1 / git cannot access return code 22 ×1 / git returncode 22 ×1 / git push 失敗 return code 22 ×1 / Cannot access URL ×1 / Cannot access URL return code 22 ×1 / git push git-http-push failed ×1 / return code 22 fatal: git-http-push failed ×1 / code 22 fatal: git-http-push failed ×1 / git リポジトリ ×1 / Git push http Cannot access URL http return code 22 ×1 / error: Cannot access return code 22 git ×1 / git DAV 書き込み ×1 / git-http-push ×1 / return code 22 atal: git-http-push failed ×1 / git-http-push failed push ×1