From nobody Fri Mar 29 01:46:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66226+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66226+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1602709442; cv=none; d=zohomail.com; s=zohoarc; b=luJZUrk20UybXFPzbLRJLM3WCYIyjSPUGJvjyIKm7ZFxshBhVSXQzImYOVKB4NdHFqPQ7h90r+LJa5MwSNssyNnsmgDqP37arH54J6exsBO4a1VhBH55YZ2F8wXxQdGfVApWU913NSUzj+yC/MMCPRjWxnGY2X7jtxZ/0m8ewCU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602709442; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=IcII26zxmmGvvJAFLpjvXJvND02QEON7Q4bB45qCVgU=; b=KV+3P0CuuB6Ed5NviokZMj+ZiRs2BHmYCH6CkCB4bXzvLMc/emVhD3eQAJXBUZv086Y0+k8RowU6Py6u7Wj70+eW/Qw+A3nek67ZfVj8IG7AThRI9kdGRu7vDFe5nkEmjDwK7CxXBsg57/G18bbsoCB8AxY53XaIEI+UPSnZXC4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66226+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 160270944205765.53169155540536; Wed, 14 Oct 2020 14:04:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0wiWYY1788612xeBMcVcMd5x; Wed, 14 Oct 2020 14:04:01 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.6087.1602709435764735161 for ; Wed, 14 Oct 2020 14:03:56 -0700 IronPort-SDR: 9HKFyT4Zh3sxHZWF1wKpRf3YSqCVquK8H8DSRtWEnFNDuEoyJ+LTTdIAsHkTVOK3oASg7iTpTs Cg49Jq9JPKDg== X-IronPort-AV: E=McAfee;i="6000,8403,9774"; a="166313726" X-IronPort-AV: E=Sophos;i="5.77,376,1596524400"; d="scan'208";a="166313726" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2020 14:03:53 -0700 IronPort-SDR: tsDQwgQ0ln8fxp6y/4Mv9ZN1deqJk49RkK47/Xl9IvFlwLBVk5Rv1ZiBh4IsNTgcZOMaKSuHTe dYTnbA3ez0SQ== X-IronPort-AV: E=Sophos;i="5.77,376,1596524400"; d="scan'208";a="314290923" X-Received: from ecbjorge-mobl1.amr.corp.intel.com ([10.212.82.118]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2020 14:03:52 -0700 From: "Bjorge, Erik C" To: devel@edk2.groups.io Cc: Ashley E Desimone , Nate DeSimone , Puja Pandya , Bret Barkelew , Prince Agyeman Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH v1] EdkRepo: Removing checkout in clone command Date: Wed, 14 Oct 2020 14:03:33 -0700 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,erik.c.bjorge@intel.com X-Gm-Message-State: Lb9ryKwxmDS14DCdWfOX2Ra5x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1602709441; bh=89eRGKOazjh+L98ZxOclmr3OKDHYKwM9qMpmae6ce3A=; h=Cc:Date:From:Reply-To:Subject:To; b=A6pjuDu7utiuxEJY9MEsF4w2qeRr2z11qp5t8KOZ0Z+dmXntG24dkSqmamoQi6n23A4 F6DygpYj2aVlfzbGkT6vXOd6pp0G9++QCqfyV2XetkMseArOiDGWV3CFje6W5ft9F8m+G tLnaZnW6YdEg8aSfLprOKBb9jbZBP/PGOMQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" When cloning a repo the files do not need to be checked out. This is because files will be checked out based on information in the manifest later. This reduces a number of file operations on larger repos and will improve clone performance. Cc: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Bret Barkelew Cc: Prince Agyeman Cc: Erik Bjorge Signed-off-by: Erik Bjorge Reviewed-by: Nate DeSimone --- edkrepo/common/common_repo_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edkrepo/common/common_repo_functions.py b/edkrepo/common/commo= n_repo_functions.py index d14f89a..0d54bbf 100644 --- a/edkrepo/common/common_repo_functions.py +++ b/edkrepo/common/common_repo_functions.py @@ -79,9 +79,9 @@ def clone_repos(args, workspace_dir, repos_to_clone, proj= ect_client_side_hooks, for repo_to_clone in repos_to_clone: local_repo_path =3D os.path.join(workspace_dir, repo_to_clone.root) local_repo_url =3D repo_to_clone.remote_url - print ("Cloning from: " + str(local_repo_url)) - repo =3D Repo.clone_from(local_repo_url, local_repo_path, progress= =3DGitProgressHandler()) - #Fetch notes + print("Cloning from: " + str(local_repo_url)) + repo =3D Repo.clone_from(local_repo_url, local_repo_path, progress= =3DGitProgressHandler(), no_checkout=3DTrue) + # Fetch notes repo.remotes.origin.fetch("refs/notes/*:refs/notes/*") =20 # Add the primary remote so that a reference to the latest code is= available when --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#66226): https://edk2.groups.io/g/devel/message/66226 Mute This Topic: https://groups.io/mt/77515395/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-