cab3e935d6
Write SPEC.md v0.1 from the owner interview (requirements, data model, stack, API outline, security, business rules, deployment, milestones, UX sprint brief, contracts). Fill the CLAUDE.md blanks, move the Gradle pin files into android/, point the tools at android/ and server/, and record the git bootstrap exception in the handoff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
683 B
Bash
Executable File
16 lines
683 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Installs the Kvitt pre-commit hook into this repository's hooks folder (shared by all worktrees).
|
|
# The hook guards itself: on branches without android/ or server/ it only runs the secrets check.
|
|
set -euo pipefail
|
|
here="$(cd "$(dirname "$0")" && pwd)"
|
|
hooks="$(git -C "$here" rev-parse --path-format=absolute --git-common-dir)/hooks"
|
|
target="$hooks/pre-commit"
|
|
if [[ -e "$target" ]] && ! cmp -s "$here/git-hooks/pre-commit" "$target"; then
|
|
echo "A different pre-commit hook already exists at $target; not overwriting. Merge them by hand." >&2
|
|
exit 1
|
|
fi
|
|
mkdir -p "$hooks"
|
|
cp "$here/git-hooks/pre-commit" "$target"
|
|
chmod +x "$target"
|
|
echo "Installed $target"
|