From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.666.1596692806864284589 for ; Wed, 05 Aug 2020 22:46:46 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: nathaniel.l.desimone@intel.com) IronPort-SDR: F8BRh3kxI2/KepldjBfs598PCSnw0ISqlafhtmCzTU2uKHkyGk9EeZP73P/ggwg8lmk96jKF7T 4+3PdaMqVOug== X-IronPort-AV: E=McAfee;i="6000,8403,9704"; a="150471448" X-IronPort-AV: E=Sophos;i="5.75,440,1589266800"; d="scan'208";a="150471448" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2020 22:46:46 -0700 IronPort-SDR: UFG8NvwKF2184t77JW+Vlzc0HWaUud4a6oi07BgDVCRqiHkffH5srpId8pFEC4BnX92rnekmMC SZMVDTJAv9Mw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,440,1589266800"; d="scan'208";a="276294502" Received: from nldesimo-desk1.amr.corp.intel.com ([10.212.84.141]) by fmsmga008.fm.intel.com with ESMTP; 05 Aug 2020 22:46:45 -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 V1 0/2] EdkRepo: Add support for SUBST drives Date: Wed, 5 Aug 2020 22:46:33 -0700 Message-Id: <20200806054635.4809-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 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: Nate 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 | 6 ++++ edkrepo/common/pathfix.py | 50 ++++++++++++++++++++++++++++++- edkrepo/config/config_factory.py | 10 ++++++- 3 files changed, 64 insertions(+), 2 deletions(-) -- 2.27.0.windows.1