Commit 110863e
Fix pre-push hook when no terminal is attached (#475)
* Fix pre-push hook when no terminal is attached
Pushing from non-interactive environments (Claude Code, IDE
integrations, CI) failed for two reasons:
- The hook's `exec < /dev/tty` errors out when no TTY exists. Only
redirect stdin when /dev/tty is actually readable.
- Git feeds the pre-push hook its ref list on stdin, so without the
redirect, copy-shared-files' confirmation prompt read a ref line as
the answer and aborted the push. Only prompt when stdin is a
terminal; otherwise proceed with the default.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Move pnpm settings from .npmrc to pnpm-workspace.yaml
The root .npmrc contained only pnpm-specific workspace settings, which
npm doesn't understand, so every `npm run` (including the pre-push
hook) printed "Unknown project config" warnings. pnpm 10 reads its
settings from pnpm-workspace.yaml, which npm never touches.
No resolution change: `pnpm install --lockfile-only` leaves
pnpm-lock.yaml untouched.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent fb8de90 commit 110863e
4 files changed
Lines changed: 29 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
13 | 29 | | |
14 | 30 | | |
15 | 31 | | |
| |||
0 commit comments