From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web11.2596.1601083731573090498 for ; Fri, 25 Sep 2020 18:28:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: nathaniel.l.desimone@intel.com) IronPort-SDR: neTR4T/KURpSnwO0T35BQvdrJFnffjtvzAYsb7oWCAA1YRN4MJ7gchgdLI/86I5XanManD7C0q TlEzSEldSCow== X-IronPort-AV: E=McAfee;i="6000,8403,9755"; a="160930079" X-IronPort-AV: E=Sophos;i="5.77,303,1596524400"; d="scan'208";a="160930079" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2020 18:28:49 -0700 IronPort-SDR: 5GkZh0ZZLlr1U5Z8jg8hKKQHYHiwTf1ysJSpvmAqYClADb8Bv04SDVTULtu+cTmTA9bDDLd8xD BfFheo1Eo/Eg== X-IronPort-AV: E=Sophos;i="5.77,303,1596524400"; d="scan'208";a="513246004" Received: from nldesimo-desk1.amr.corp.intel.com ([10.212.4.151]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2020 18:28:48 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Ashley E Desimone , Puja Pandya , Bret Barkelew , Prince Agyeman , Erik Bjorge Subject: [edk2-staging/EdkRepo] [PATCH V3 0/2] EdkRepo: Add support for SUBST drives Date: Fri, 25 Sep 2020 18:28:24 -0700 Message-Id: <20200926012826.4976-1-nathaniel.l.desimone@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes in V3: - Changed loop for finding subst drive to single if statement Changes in V2: - Changed get_subst_drive_list() to get_subst_drive_dict() EdkRepo currently does not handle virtual drives created using the SUBST command. Specifically, when cloning or syncing a project to a subst drive the includeIf statements that redirect submodule fetches to mirror servers will be generated with the subst drive information.  This causes git to not activate the includeif since it specifies the subst path and not the actual path. To resolve this, EdkRepo will now enumerate the virtual drives created by SUBST and if the current workspace is on a SUBST virtual drive EdkRepo will convert the workspace path to the path on the real volume. Cc: Ashley E Desimone Cc: Puja Pandya Cc: Bret Barkelew Cc: Prince Agyeman Cc: Erik Bjorge Signed-off-by: Nate DeSimone Nate DeSimone (2): EdkRepo: Add function to enumerate subst drives EdkRepo: Add support for subst drives edkrepo/commands/clone_command.py | 8 +++++ edkrepo/common/pathfix.py | 50 ++++++++++++++++++++++++++++++- edkrepo/config/config_factory.py | 10 ++++++- 3 files changed, 66 insertions(+), 2 deletions(-) -- 2.27.0.windows.1