Skip some failing tests to be able to run the rest. Add missing config to make git commit succeed inside rpmbuild.
20 lines
1.1 KiB
Bash
Executable File
20 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
git init -q --bare --object-format=sha256
|
|
git config user.email test@example.com
|
|
git config user.name Test
|
|
export GIT_AUTHOR_DATE=2025-10-27T14:20:07+01:00
|
|
export GIT_COMMITTER_DATE=2025-10-27T14:20:07+01:00
|
|
|
|
# 81aba862107f1e2f5312e165453955485f424612f313d6c2fb1b31fef9f82a14
|
|
blobA=$(echo "help" | git hash-object --stdin -w)
|
|
# 47d6aca82756ff2e61e53520bfdf1faa6c86d933be4854eb34840c57d12e0c85
|
|
blobB=$(echo "foo" | git hash-object --stdin -w)
|
|
|
|
tree=$(printf "100644 blob $blobA help\n100644 blob $blobB README.md\n160000 commit dc55b828328c8e494f67874a7d8c03dd1c6b4e02d16b86e08e47d70ecd799680 mingw32-gcc\n160000 commit d6a74c08406ce40cc8f7bff2d5cf309087a8728361cc75354b0862ba508193b8 nodejs-common\n160000 commit c678c57007d496a98bec668ae38f2c26a695f94af78012f15d044ccf066ccb41 nodejs21\n160000 commit 873a323b262ebb3bd77b2592b2e11bdd08dbc721cbf4ac9f97637e58e1fffce7 nodejs22\n160000 commit 35c702e8501eedeb5ce43d6f3460d11c791cfefaa77248f08cad55d00c37e73a python311\n"|git mktree)
|
|
commit=$(git commit-tree -m 'OK' $tree)
|
|
git reset --soft $commit
|
|
|
|
echo $commit
|
|
|