]> git.proxmox.com Git - mirror_edk2.git/commit
.pytool/Plugin/EccCheck: Remove RevertCode()
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 23 Nov 2021 05:13:41 +0000 (21:13 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 29 Nov 2021 06:38:51 +0000 (06:38 +0000)
commit69877614fdeef64b8d1d6f21d5a209dce22983b7
tree08469737469a213e2239a74b34acabaaf155866a
parentef9a059cdb15844fe52a49af2bf7d86b9dd3e9bf
.pytool/Plugin/EccCheck: Remove RevertCode()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2986

The RevertCode() method uses git reset which can remove
local changes. Instead of modifying the local files, a
copy of the package passed into the EccCheck tool is
copied to a temp directory in Build/ecctemp.  This same
temp directory is also used for exception.xml. The working
directory used by ECC is also set to this same temp
directory. The combination of these changes eliminates
operations that that modified the git state.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
.pytool/Plugin/EccCheck/EccCheck.py