• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / overcommit / 42761164328
100%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 10 Nov 2026 05:17AM UTC
Jobs 18
Files 223
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 05:17AM UTC coverage: 92.456% (+0.006%) from 92.45%
42761164328

push

github

web-flow
Preserve standard input bytes when forwarding hooks (#925)

Overcommit forwards ad hoc hook input using `puts`, which adds a newline
to an empty stream or to an unterminated record. For a post-rewrite
consumer such as git-branchless, an empty stream becomes a blank record
and fails with `Invalid rewrite line`.

Read hook stdin and write the supplied subprocess input in binary mode.
This preserves empty input, record terminators, and arbitrary bytes on
Windows as well as Unix, while still closing stdin so the child sees
EOF.

Fixes #869.

Reproduced locally through an installed post-rewrite CustomScript using
a small parser with git-branchless's empty-stream/blank-record behavior.
Before the fix, empty input fails with `Invalid rewrite line`, and
unterminated input gains a newline. The fixture verifies arguments and
exact bytes for empty, unterminated, LF, multiline, and CRLF input.
Subprocess tests also cover binary data; existing expectations that
assumed an added newline now expect the actual supplied input.

Validation: full local RSpec suite (1,738 examples); RuboCop on all
changed Ruby files. Full Linux/Windows CI runs on the PR.

Also verified against git-branchless 0.11.1 downloaded into `/tmp` and
initialized only in a disposable repository: forwarding an empty stream
exits 0; forwarding the injected blank line exits 1 with `Invalid
rewrite line`. No system installation or existing repository
configuration was changed.

The first Windows CI run exposed stdin CRLF conversion before
forwarding; HookContext now reads the original stream in binary mode as
well. The CRLF integration case remains identical on every platform.

5 of 5 new or added lines in 2 files covered. (100.0%)

3346 of 3619 relevant lines covered (92.46%)

3914.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby3.4-windows-shard3of5 - 42761164328.1 10 Nov 2026 05:18AM UTC 446
77.69
GitHub Action Run
2 ruby4.0-windows-shard4of5 - 42761164328.2 10 Nov 2026 05:18AM UTC 446
73.52
GitHub Action Run
3 ruby3.3-windows-shard5of5 - 42761164328.3 10 Nov 2026 05:18AM UTC 446
73.55
GitHub Action Run
4 ruby3.3-windows-shard1of5 - 42761164328.4 10 Nov 2026 05:18AM UTC 446
71.86
GitHub Action Run
5 ruby3.4-windows-shard5of5 - 42761164328.5 10 Nov 2026 05:18AM UTC 446
73.49
GitHub Action Run
6 ruby3.3-windows-shard2of5 - 42761164328.6 10 Nov 2026 05:18AM UTC 446
72.36
GitHub Action Run
7 ruby4.0-ubuntu-shard1of1 - 42761164328.7 10 Nov 2026 05:17AM UTC 446
92.43
GitHub Action Run
8 ruby3.3-ubuntu-shard1of1 - 42761164328.8 10 Nov 2026 05:17AM UTC 446
92.42
GitHub Action Run
9 ruby4.0-windows-shard1of5 - 42761164328.9 10 Nov 2026 05:18AM UTC 446
71.84
GitHub Action Run
10 ruby4.0-windows-shard5of5 - 42761164328.10 10 Nov 2026 05:18AM UTC 446
73.55
GitHub Action Run
11 ruby3.4-windows-shard4of5 - 42761164328.11 10 Nov 2026 05:18AM UTC 446
73.52
GitHub Action Run
12 ruby3.4-windows-shard2of5 - 42761164328.12 10 Nov 2026 05:17AM UTC 446
72.31
GitHub Action Run
13 ruby4.0-windows-shard3of5 - 42761164328.13 10 Nov 2026 05:18AM UTC 446
77.69
GitHub Action Run
14 ruby4.0-windows-shard2of5 - 42761164328.14 10 Nov 2026 05:18AM UTC 446
72.22
GitHub Action Run
15 ruby3.4-windows-shard1of5 - 42761164328.15 10 Nov 2026 05:18AM UTC 446
71.84
GitHub Action Run
16 ruby3.3-windows-shard4of5 - 42761164328.16 10 Nov 2026 05:18AM UTC 446
73.55
GitHub Action Run
17 ruby3.4-ubuntu-shard1of1 - 42761164328.17 10 Nov 2026 05:17AM UTC 446
92.43
GitHub Action Run
18 ruby3.3-windows-shard3of5 - 42761164328.18 10 Nov 2026 05:17AM UTC 446
77.73
GitHub Action Run
Source Files on build 42761164328
  • Tree
  • List 223
  • Changed 222
  • Source Changed 2
  • Coverage Changed 222
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42761164328
  • ea9573c8 on github
  • Prev Build on main (#42760248530)
  • Next Build on main (#42761522336)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc