From 5d841f67347ba3a1d6fc4981e2a9803414ea5828 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 8 Jul 2014 11:27:59 +0100 Subject: [PATCH] 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 --- adhoc-revtuple-generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adhoc-revtuple-generator b/adhoc-revtuple-generator index f94f189..2b04c11 100755 --- a/adhoc-revtuple-generator +++ b/adhoc-revtuple-generator @@ -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 -- 2.39.5