repo 1.12.21
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJVP8vYAAoJEGe35EhpKzgsDhUH/3+qDxIe8vc9Q9iFZWGlr9x3
XvTT/dTObT0GvXrlJpFpY4XUpoUGx0gYuMLKq79o0gPxSXFY9Zv50okbplC0YIbv
1zwmFpBZgu5n4adWyl2Rh12KXkL4vMa0q0pCcaT89hA47HRk0LNmQJ6t62qepYVH
KeoS22j4p7/c/fRTZY/Jg1Ap9zIdZNzaToLfcixN8RwoHC4RCjiwxCQqVOGsawnQ
2iFUu4X8wWYobS6vxmfCyIYPhyz3nv7hF/Grxj7kbQ5IpUkGpArGz7Iyg1PqA4u/
ANfQ2JrtYhI2VxeyUW9p8xNiGezK/vuN7CxatqVqI+bSaz8TO4l5K7ZLeLGaeKs=
=Sq6s
-----END PGP SIGNATURE-----
Don't append branch to fetch spec when syncing to a mirror

Appending the branch to the fetch spec causes sync of a mirror to
fail for projects that don't have an explicit revision specified,
and don't have a branch of the same name as the default revision.

For example, a manifest defining a default revision:

 <default revision="master">

having a project without an explicit revision:

 <project name="path/to/project">

and not having a branch named "master", will cause repo sync to
fail for that project with the error:

 Couldn't find remote ref refs/heads/master

Modify the logic to not append the branch onto the fetch spec when
syncing to a mirror.

Change-Id: I5c4457bd125519abf27abe682dea62ad708978c9
1 file changed