summaryrefslogtreecommitdiff
path: root/test/other_tools/git_operations/critical_git_ops.test.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-22 13:00:40 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-26 11:32:40 +0200
commit426f01ee6be96f3ad7298c09adbe5297e3537f1d (patch)
treeeeb2c59a36b74eec6fec78ea511366f68ac6d0d4 /test/other_tools/git_operations/critical_git_ops.test.cpp
parentc3e6a6f527f590dcbb6411f4e778b10bd5a9d74e (diff)
downloadjustbuild-426f01ee6be96f3ad7298c09adbe5297e3537f1d.tar.gz
just-mr.py: Accept all tree entries for bootstrapped just
The Python script used for the first stage of bootstrapping just uses the Git index to create trees from directories (be it file repositories, unpacked archives, or distfiles), therefore it has the limitations of Git itself in committing trees that contain entries ignored by Git, such as empty directories, the .git folder, .gitignore files and files referenced there, or other entries with Git-specific magic names. This commit updates the Python script to replace the use of the Git index for importing directories to directly writing the needed blobs and trees to the object database, then commit the resulting top tree explicitly. While there, fix a typing issue from our relaxed approach in using os.environ to set the subprocess env when running commands. As on POSIX the type is _Environ, not simple Dict[str, str], use implicit dictionary merging (Python v3.5+) to set the Git envars. The issue was initially flagged by pyright.
Diffstat (limited to 'test/other_tools/git_operations/critical_git_ops.test.cpp')
0 files changed, 0 insertions, 0 deletions