Hi group,
I'm trying to setup a local mirror of a remote repo, which is located
in another site of our company.
I created a mirror with 'repo init -u ssh://serv01/git/android/platform/manifest.git
-b branch --mirror' on a
network location: /nfs/storage/localrepo.
The manifest contains several remotes, smth like:
<remote fetch="git://
android.git.kernel.org/" name="korg"
review="
review.source.android.com"/>
<remote fetch="ssh://serv01/git/android/" name="shgit"
review="
http://serv01/r/"/>
<remote fetch="ssh://serv01/git/pie/" name="piegit" review="http://
serv01/r/"/>
<remote fetch="ssh://serv01/git/pt/" name="ptgit" review="http://
serv01/r/"/>
Then I init from localrepo from another account:
repo init -u /nfs/storage/localrepo/platform/manifest.git -b branch
In order to fetch data from localrepo instead of remote server I setup
the following git config values:
git config --global url.ssh://serv01/git/android/.insteadOf /nfs/
storage/localrepo/
git config --global url.ssh://serv01/git/pie/.insteadOf /nfs/storage/
localrepo/
git config --global url.ssh://serv01/git/pt/.insteadOf /nfs/storage/
localrepo/
After this I expect repo sync to fetch only from /nfs/storage/
localrepo/, but it prompts for serv01 password.
Did I miss smth? How can I make repo sync connect only to localrepo?
Any help will be apprecated.
Thanks,
Igor.