adhoc-revtuple-generator: Explicitly specify refs to fetch
PATCH 1/1 adhoc-revtuple-generator: Explicitly specify refs to fetch
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 <[email protected]>
--- adhoc-revtuple-generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
adhoc-revtuple-generator +1 -1
@@ -104,7 +104,7 @@ sub git_generator ($) { # 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
Signature · 1 line
1.7.10.4