ほとまるブログ

おっぱいアニメ愛好家のブログ (゚∀゚)o彡゜おっぱい!おっぱい!

HTTPのみでAndroidリポジトリを取得する

会社のネットワークはgitを通してくれない。http(s)だけ通る
システム部さんがセキュリティ上、proxyサーバーを開けてくれないので申請という名のスタンプラリーが必要らしい
gitがダメならhttpで取得すればいいじゃなイカ! (いいのかよw)

リポジトリの初期化

$ mkdir repo_eclair
$ cd repo_eclair
$ curl http://android.git.kernel.org/repo > repo
$ chmod +x repo 
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
Getting repo ...
   from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 130.239.17.12]: errno=Connection timed out
httpに変更してリトライ
$ repo init -u http://android.git.kernel.org/platform/manifest.git -b eclair
Getting repo ...
   from git://android.git.kernel.org/tools/repo.git

gitからhttpに変えたのに、gitで繋ごうとしてる

repoの編集

こんなところに記述が・・・

$ vi repo
- REPO_URL='git://android.git.kernel.org/tools/repo.git'
+ REPO_URL='http://android.git.kernel.org/tools/repo.git'

もう一度

$ repo init -u http://android.git.kernel.org/platform/manifest.git -b eclair
Getting repo ...
   from http://android.git.kernel.org/tools/repo.git
remote: Counting objects: 1264, done.

通った!

リポジトリの同期

$ repo sync
Initializing project platform/bionic ...
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out

また通らない・・・
他にも記述があった

manifest.xmlの編集
$ vi .repo/manifest.xml 
- fetch="git://android.git.kernel.org/"
+ fetch="http://android.git.kernel.org/"
repoの編集

repoがもう一つある・・・

$ vi .repo/repo/repo
- REPO_URL='git://android.git.kernel.org/tools/repo.git'
+ REPO_URL='http://android.git.kernel.org/tools/repo.git'

何度目だよw

$ repo sync

何とか通りました