Files
DanConwayDev de0e33e9e4 ci: keep workflow support files beside their YAML
Move CI and release-only Nix expressions and scripts into
.ngit/nix/workflows. Keep the deployment module and its example under nix.
Update imports, the lockfile relative path, documentation and the
container workflow path filter without changing execution behavior.

Validation: the release CLI check evaluates after the move; all moved
script content is unchanged. Workflow interface and cache improvements
are deliberately separate commits.

Assisted-by: GPT-6
2026-10-17 23:04:43 +00:00

11 lines
675 B
Bash

# Sourced in the test derivation; all paths belong to its private sandbox.
mkdir -p "$HOME/hostile-git/hooks" "$HOME/hostile-git/template/hooks"
printf '#!/bin/sh\necho "hostile hook: ambient git config leaked into a test" >&2\nexit 1\n' \
| tee "$HOME/hostile-git/hooks/pre-commit" > "$HOME/hostile-git/template/hooks/pre-commit"
chmod +x "$HOME/hostile-git/hooks/pre-commit" "$HOME/hostile-git/template/hooks/pre-commit"
git config --global init.defaultBranch main
git config --global core.hooksPath "$HOME/hostile-git/hooks"
git config --global init.templateDir "$HOME/hostile-git/template"
git config --global commit.gpgsign true
git config --global core.autocrlf true