From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: erik.c.bjorge@intel.com) 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 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" 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-staging/EdkRepo] [PATCH v1] EdkRepo: Removing checkout in clone command Date: Wed, 14 Oct 2020 14:03:33 -0700 Message-Id: X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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/common_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, project_client_side_hooks, for repo_to_clone in repos_to_clone: local_repo_path = os.path.join(workspace_dir, repo_to_clone.root) local_repo_url = repo_to_clone.remote_url - print ("Cloning from: " + str(local_repo_url)) - repo = Repo.clone_from(local_repo_url, local_repo_path, progress=GitProgressHandler()) - #Fetch notes + print("Cloning from: " + str(local_repo_url)) + repo = Repo.clone_from(local_repo_url, local_repo_path, progress=GitProgressHandler(), no_checkout=True) + # Fetch notes repo.remotes.origin.fetch("refs/notes/*:refs/notes/*") # Add the primary remote so that a reference to the latest code is available when -- 2.21.0.windows.1