Some of the git trees in $c{Repos} may have been created (eg by
earlier versions of git or earlier versions of osstest) without the
usual
remote.origin.fetch = +refs/heads/*:refs/remotes/origin/*
git config setting.
Pass this refspec explicitly, instead of relying on it being set as
the default.
Amongst other things, this will prevent a possible error during
bisection
git fetch -p origin
[stuff]
fatal: bad object
3e3d5f6146c3f684f4b7bd71feffc31e1c668754
which is currently appearing in our cron mail.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
# the "set -e"-disarmament done by "if" leaks into ( ) !
cd $c{Repos}/$treename
git remote set-url origin $eff_url
- git fetch -p origin
+ git fetch -p origin '+refs/heads/*:refs/remotes/origin/*'
ENDIFCOND
then
rm -rf $c{Repos}/$treename