2011年4月11日 星期一

host android git mirror site with gitosis

* use wildcard support gitosis
https://github.com/mzupan/gitosis

* gitosis-post-update problem
http://blog.binfalse.de/2010/10/lost-my-gitosis-post-update/

* get android in repositories folder android/
repo init -u git://git.android-x86.org/manifest.git --mirror
repo sync
(have a cup...)

* modify writable field with wildcard to restricted users
* get manifest at first
git clone git@<serverip>:android/manifest

* change git server upstream to your server by edit default.xml
fetch=git@"<serverip>:/android/"
* and then push back to server
git commit -am 'update local server'
git push

* create your local copy
repo init -u git@<serverip>:android/manifest.git
repo sync


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