aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-02 01:35:46 +0000
committertv <tv@krebsco.de>2026-12-02 16:33:24 +0100
commitc8fbbee154adfd7c312c7575c87fb25890168956 (patch)
tree90ca3ff17d3501f28deb940adf7073a9fcb32da4 /tests
parent5874ad295e3ada5d6db880253c140c2107fdd655 (diff)
populate probe: run git status before looking for nested .gitHEADmaster
Looking for a .git below a work tree takes find walking all of it, which takes longer than git status: for nixpkgs, 0.375 s and 0.275 s, of 0.65 s per git source and run with nothing to do. Without submodules, which the index tells, Git follows no .git below the work tree, so the probe runs git status first. If it finds anything untracked or ignored, the source gets delivered, and the git script checks the work tree as before; else there's no .git below it, except where Git doesn't list one, e.g. a .git file in a tracked directory, which the next run with something to deliver refuses. With submodules, the probe looks for nested .git first, as before. git_problems is git_dir_problems and git_nested_problems now.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
[cgit] Unable to lock slot /tmp/cgit/f2100000.lock: Permission denied (13)