I have some git repository which have some local tags and remote refs
in .git/remotes. Actually, these repository are generated by " repo
init -u git://
android.git.kernel.org/platform/manifest.git " and "repo
sync".
Now I want to make these git repositories as a "repo mirror" so others
people can use repo to download them from my machine. How can I make
this?
I tried these steps:
1. use " git clone --bare " to make a copy of these git repositories.
2. make a manifest.git directory with a customize default.xml
3. use git-daemon to host them
And I try to use repo to download them from another machine, like "
repo init -u git://
my.machine.com/manifest.git". It's worked.
And when I use " repo sync " to download the code, it report error
like:
Initializing project system/wlan/ti ...
Traceback (most recent call last):
File "/apps/mds_lrt/kfqp84/re/.repo/repo/main.py", line 202, in
<module>
_Main(sys.argv[1:])
File "/apps/mds_lrt/kfqp84/re/.repo/repo/main.py", line 186, in
_Main
repo._Run(argv)
File "/apps/mds_lrt/kfqp84/re/.repo/repo/main.py", line 96, in _Run
cmd.Execute(copts, cargs)
File "/apps/mds_lrt/kfqp84/re/.repo/repo/subcmds/sync.py", line 106,
in Execute
if not project.Sync_LocalHalf():
File "/apps/mds_lrt/kfqp84/re/.repo/repo/project.py", line 607, in
Sync_LocalHalf
self._InitWorkTree()
File "/apps/mds_lrt/kfqp84/re/.repo/repo/project.py", line 1008, in
_InitWorkTree
rev = self.bare_git.rev_parse('%s^0' % rev)
File "/apps/mds_lrt/kfqp84/re/.repo/repo/project.py", line 1191, in
runner
p.stderr))
error.GitError: bionic rev-parse: fatal: ambiguous argument 'refs/
remotes/simon/master^0': unknown revision or path not in the working
tree.
Use '--' to separate paths from revisions
It's seems that it doesn't have these references in /refs/xxx . How
can I make it?
In shortly, how to make a repositories that can use "repo" tool to
manage it?
Thank you!
Regards
Simon Liu