mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-30 11:07:33 +00:00
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
11 lines
675 B
Bash
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
|