From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.2849.1584559769112531991 for ; Wed, 18 Mar 2020 12:29:29 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: nathaniel.l.desimone@intel.com) IronPort-SDR: hBfWXZf+YcCAEpqI7jmvEp9l7MnePHvkibuaCmYiUHlc44Z27kdIM6bbT9aCbcwx6n42YbDFqN 1OQmKrc0ABjg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 12:29:28 -0700 IronPort-SDR: EA0cmG3nPllrhusOfhPjjf4MN+cTmGepgQHwPII2uKAJl4joxNCVn0wCBE4s18o7wWQ1jGJ+Ko /32N01zIE8Vg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,568,1574150400"; d="scan'208";a="418061159" Received: from nldesimo-desk1.amr.corp.intel.com ([10.7.159.63]) by orsmga005.jf.intel.com with ESMTP; 18 Mar 2020 12:29:28 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Ashley DeSimone , Puja Pandya , Erik Bjorge , Bret Barkelew Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Add additional debug for checkout failures Date: Wed, 18 Mar 2020 12:29:21 -0700 Message-Id: <20200318192921.1529-1-nathaniel.l.desimone@intel.com> X-Mailer: git-send-email 2.24.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Ashley DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Signed-off-by: Nate DeSimone --- edkrepo/common/common_repo_functions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edkrepo/common/common_repo_functions.py b/edkrepo/common/common_repo_functions.py index 4b580c0..288dd27 100644 --- a/edkrepo/common/common_repo_functions.py +++ b/edkrepo/common/common_repo_functions.py @@ -14,6 +14,7 @@ import sys import unicodedata import urllib.request import subprocess +import traceback import git from git import Repo @@ -600,7 +601,9 @@ def checkout(combination_or_sha, verbose=False, override=False, log=None): if combination_is_in_manifest(combo_or_sha, manifest): manifest.write_current_combo(combo_or_sha) except: - print (CHECKOUT_COMBO_UNSUCCESFULL.format(combo_or_sha)) + if verbose: + traceback.print_exc() + print (CHECKOUT_COMBO_UNSUCCESSFULL.format(combo_or_sha)) # Return to the initial combo, since there was an issue with cheking out the selected combo checkout_repos(verbose, override, initial_repo_sources, workspace_path, manifest) finally: -- 2.24.0.windows.2