diff options
| author | tv <tv@krebsco.de> | 2026-11-13 20:27:48 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-13 21:59:07 +0100 |
| commit | b34f53d538c5afa95fd0dc6dd81b56e4995b80c2 (patch) | |
| tree | f8afac88dcb0a695f6eaf911fcdc7cdc36e62532 /CHANGELOG.md | |
| parent | ef581c93f391919b35b903b93af45f33d90de15d (diff) | |
populate: check the hooks and submodules of Git work trees
git submodule update uses the .git of a submodule as it finds it in the
work tree: a repository of its own, with configuration that runs
commands, or a file naming a repository elsewhere. So git_problems
also requires each .git below the work tree to be a file naming a
repository in .git/modules. And it refuses hooks in .git/hooks, which
populate's Git doesn't run, but Nix's does, writing the lock file of a
flake in a git source.
git-submodule plants a submodule's .git in the work tree: a repository
of its own whose configuration names a filter, and a file naming a
repository elsewhere. The fixture withsub has gitsrc as its submodule
sub.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f5f2c4..e19decc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and the other functions keep their arguments. - Git can't take a `git` source's `url` or `ref`, or a `pass` source's `name`, for an option. +- `git` sources also refuse work trees whose `.git` directory contains + hooks, or in which a submodule's `.git` isn't a file naming a repository + in `.git/modules`, unless `reclone` is set. - `git` sources with a branch or tag as `ref` follow it: populate fetches the branch or tag on every run, and resets the work tree to what it fetched. |
