Well, you could have done this a few different ways, but yes,
this isn't something done without additional script support.
One alternative, you could have used a repo mirror client:
repo init ... --mirror
repo sync
repo forall -c git push --all 'ssh://username@srv:29418/${REPO_PROJECT}'
as the local refs/heads namespace would match the upstream project.
You could also have done this without creating local tracking
branches. In a non-mirror client:
repo forall -c '
git push --all ssh://username@srv:29418/$REPO_PROJECT \
$(git for-each-ref \
--format='%(refname):%(refname)' \
refs/remotes/$REPO_REMOTE |
sed s,:refs/remotes/$REPO_REMOTE/,:refs/heads/,)
'
In FuzzyScript, I changed the first cut line:
git branch `echo $B | cut -d"/" -f2` --track $B
to this:
git branch `echo $B | sed s:origin/::` --track $B
because I had some branches with two slashes and cut didn't parse
those correctly.
-senthil
On Dec 24 2009, 11:37 am, Shawn Pearce <s...@google.com> wrote: