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

sds / overcommit / 42765158542
100%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 10 Nov 2026 05:57AM UTC
Jobs 1
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:55AM UTC coverage: 92.522% (+0.07%) from 92.456%
42765158542

push

github

web-flow
Keep deleted and renamed paths absent while stashing changes (#928)

Older Git versions can resurrect staged deletions and old rename paths as untracked files while commit hooks run. The scripted `git stash --keep-index` resets the working tree to HEAD, then restores the index without removing those paths, so tools such as RSpec can discover obsolete files.

Stash normally and restore the staged tree with `git read-tree --reset -u stash@{0}^2`. This updates the index and working tree without moving HEAD. If restoring the staged tree fails, stop before running hooks and retain the stash for recovery. Only restore it when this run actually created a stash.

Fixes the original normal-commit report in #699; the separate `overcommit --run` case was addressed in #905.

The added examples exposed a coverage-reporting problem: round-robin shard assignments shift when tests are added, so per-shard coverage comparisons can fail despite higher total coverage. CI now collects every shard's LCOV report and submits them together for one complete-suite coverage comparison. All test matrix jobs still run, and missing coverage artifacts fail the build.

Validation:

- Full suite: 1,750 examples, zero failures.
- All pre-commit checks and RuboCop pass.
- Added 12 examples covering pre-commit and commit-message contexts, current and emulated legacy stash behavior, complete state restoration, existing stashes, and setup failure recovery. No existing tests were removed.
- Confirmed setup and cleanup against Git 2.20's actual stash script, with its legacy text-output helper restored for compatibility with current Git.
- Confirmed the old-name regression tests fail before the fix.

Fixes #699.

5 of 5 new or added lines in 1 file covered. (100.0%)

3353 of 3624 relevant lines covered (92.52%)

1971.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42765158542.1 10 Nov 2026 05:57AM UTC 4014
77.0
GitHub Action Run
Source Files on build 42765158542
  • Tree
  • List 223
  • Changed 223
  • Source Changed 223
  • Coverage Changed 180
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42765158542
  • 257c949d on github
  • Prev Build on main (#42762484609)
  • Next Build on main (#42767965538)
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