/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/global_git_config
19 строк
834 B
Stefan Haller
Don't let integration tests race a background git repack
05 авг 2026, 17:58
05 авг 2026, 17:58
4ec91a0
Код
Авторство
О чём код?
# This is the global git config we use for all our integration tests [user] name = CI email = CI@example.com [protocol "file"] # see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html allow = always [commit] gpgSign = false [maintenance] # Every `git commit` forks `git maintenance run --auto --detach`. Since git # 2.54 that repacks as soon as two objects share the objects/17 fanout # directory, which happens readily in a fixture repo, and `git repack -d` # prunes loose objects while the next fixture command -- or lazygit itself -- # is still working in the same repo. That surfaces as # "error: invalid object <hash> for 'file09.txt'" / "Error building trees". # Tests must never race a background repack. auto = false