ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2011年4月1日 星期五

mirroring the android source repo - ref

作個筆記好了,各家的。



http://www.mailinglistarchive.com/repo-discuss@googlegroups.com/msg01246.html Server:

安裝 git-daemon, export path 和 option 要注意
repo init 時要加上 --mirror 這個option.
另外 clone 出剛剛 mirror 的 rep 李的manifest.git 出來。
修改 remote location to local : git://192.168.0.75
再 push 回去,這樣剛剛 mirror 下來的東西才會真的改掉。之後 clinet clone 下來的才會是 local 得 git server address

Client
可以用 git ls-remote git://192.168.0.75/platform/manifest.git 來看 git-daemon 設定 OK 不 OK.
這樣 client 就可以用 repo init -u git://192.168.0.75 改用 local server 的 repo



http://blog.luzi82.com/2010/06/blog-post_19.html
Server

一樣, repo init, 要加上 --mirror.
repo sync
clone manifest.xml 出來改:方法是用 file acccess:
git clone charles@192.168.0.72:var/cache/git/android_mirror/manifest.git git checkout -b local 一樣,改 remote 的 fetch="charles@192.168.0.72:var/cache/git/android_mirror/"
push 回去:
git commit -am 'use local server' git push original local
Client

直接用 file access:
repo init -u charles@192.168.0.72:var/cache/git/android_mirror/platform/manifest.git -b local repo sync

ref : http://www.fm0898.com/show.aspx?id=17570&cid=89
Server

裝 git-daemon ,修改 run
mkdir /var/cache/git/android_mirror 到 /var/cache/git/android_mirror repo init git://android.git.kernel.org/platform/manifest.git --mirror repo sync


ref: http://gregmeiste.com/post/3842942731/mirror-android-repositories-on-a-local-server
Server

Install git-daemon
一樣,到 /var/cache/git 開一個 android_mirror
repo init -u git://android.git.kernel.org/platform/manifest.git --mirror repo sync
修改裡面的 manifest.xml (default.xml),在 server 的另一個地方 checkout 出來,branch, 修改然後 commit, push 回去 (這篇 作者有設一個 user: git)
git clone git@192.168.0.72/platform/manifest.git cd manifest git checkout -b local 然後修改 default.xml:
把 fetch 的 server location 改為 git@192.168.0.72:android_mirror
push 回去
git commit -am 'use local git push origin local

Client
repo init -u git@192.167.0.72:android_mirror/manifest.git -b local repo sync

沒有留言:

標籤

網誌存檔