From a74582d4f1563c1251f34002c12feffe4a3e5200 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 21:19:23 +0000 Subject: populate: let git sources keep hooks, refuse them only for git+file: git sources refused work trees with hooks, but populate's Git doesn't run hooks, so git-foreign's work tree with a hook is fine to use, as it expects. Only Nix's Git runs them, in a git+file: flake, so drawing inputs refers to a work tree with hooks as path: instead. --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 730a9d1..23171e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,11 @@ login directory. - 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 also refuse work trees in which a submodule's `.git` isn't + a file naming a repository in `.git/modules`, unless `reclone` is set. - Drawing inputs refers to a source in a Git work tree as `git+file:` only - if a `git` source would use its `.git` directory, and else as `path:`. + if a `git` source would use its `.git` directory, and it has no hooks, + and else as `path:`. - `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. -- cgit v1.3.1