$ mkdir my_workspace$ cd my_workspace$ repo init -u ssh://myserver.com:29418/manifest.git -b branch_name$ repo sync
$ mkdir my_workspace$ cd my_workspace$ repo init -u ssh://myserver.com:29418/manifest.git -b branch_name
### created .repo
$ repo sync### this just created the repos in .repo/projects, did not create the workspace$ cd .repo/projects$ find . -type d -name ‘*.git’ | sed -e ‘s%\./%%’ -e ‘s/.git$//’ > ../../projects.txt$ cd ../..$ cat projects.txt | while read project ; do repo sync $project ; done### workspace is populated
Hi Magnus--
I started looking at error_log and sshd_log and I noticed that there was a problem.
The problem is that my repo sync doesn't finish because of a git-upload-pack failure in my gerrit server (not properly configured for the large repositories that I have). When I fixed my gerrit.config, the problem goes away.Also, repo sync -l does sync the repos that made it into my .repo/projects.--Thanks,
Anthony
Hi Magnus--
When gerrit stopped serving the git-upload-pack, the repo sync command just stalled and I didn't notice, and just reflexively hit ctrl-C. The files don't get copied to the workspace until all repos are copied from the remote. I don't use repo often, so I didn't realize that the lack of workspace files meant that the repo copy didn't complete.