1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Canonical pre-push gate: blocks a push whose test targets do not build.
#
# DO NOT EDIT IN PLACE. The master is _private/infra/bootstrap/githooks/pre-push.
#
# Bypass for a work-in-progress push: git push --no-verify
#
# `cargo check` and `cargo clippy` both compile only the lib and bin targets, so a
# break confined to `tests/` or a `#[cfg(test)]` module is clean under both and
# lands unnoticed (goingson's sqlx 0.9 upgrade shipped exactly that way).
# `--no-run` builds every test target without running them, which is the cheap
# half of the suite and enough to catch a compile break. Tests still run
# separately.
#
# `--workspace` is load-bearing wherever default-members is narrower than the
# workspace: goingson's is src-tauri alone, so a bare `cargo test --no-run` would
# skip core, db-sqlite, go-mcp and got.
#
# Only installed in repos with a root Cargo.toml. MNW and synckit have none by
# design (standalone crates, no root workspace), so there is no one command to run
# and they get the pre-commit gates only.
ROOT=""
# See the canonical pre-commit: a hook run from an editor or a cron job does not
# get the profile's PATH, and a hook that cannot find cargo is worse than none.
[ ||
# Refs arrive on stdin as "<local ref> <local sha> <remote ref> <remote sha>".
# A branch deletion has an all-zero local sha and no tree to build.
pushing=0
while ; do
done
[ ||
if ! ; then
fi