patman: Clean up creation of the git tree
authorSimon Glass <sjg@chromium.org>
Thu, 8 May 2025 03:23:41 +0000 (05:23 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000 (10:07 +0100)
commit3724cbade41a1dd0ec94cd9b511afe005ebf4804
treebe036445fce8fde18eb3b139b7bef6f669ae7a99
parent9302d672a5e63cdb56371eb55dc560fef97c059f
patman: Clean up creation of the git tree

The test starts with the HEAD pointing to the wrong place, so that the
created files appear to be deleted. Fix this by resetting the tree
before tests start. Add a check that the tree is clean.

Update pygit2 so that the enums are available.
tools/patman/func_test.py
tools/patman/requirements.txt
tools/u_boot_pylib/gitutil.py