From: Ian Jackson Subject: [OSSTEST PATCH] adhoc-revtuple-generator: Explicitly specify refs to fetch Date: Tue, 8 Jul 2014 11:33:52 +0100 Message-ID: <1404815632-1117-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X4Sip-0003cI-V1 for xen-devel@lists.xenproject.org; Tue, 08 Jul 2014 10:34:04 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 -- 1.7.10.4