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

msiemens / PyGitUp / 31095981247
88%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2026 11:07AM UTC
Jobs 15
Files 3
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

06 Aug 2026 11:07AM UTC coverage: 87.327% (-4.0%) from 91.315%
31095981247

push

github

web-flow
feat: support rebasing branches checked out in worktrees (#145)

* feat: support rebasing branches checked out in worktrees

When a branch is checked out in a separate git worktree, `git checkout`
fails with 'already used by worktree'. Instead of checking out such
branches in the main repo, detect them via `git worktree list --porcelain`
and perform the rebase (or fast-forward merge) directly in the worktree
directory.

This handles:
- Fast-forward: runs `git merge --ff-only` in the worktree
- Rebase: stashes worktree changes if dirty, rebases, then unstashes

Fixes the error:
  fatal: '<branch>' is already used by worktree at '<path>'

Co-Authored-By: Oz <oz-agent@warp.dev>

* fix: skip worktree branches that are mid-rebase

When a linked worktree is in the middle of a rebase, git reports it as
'detached' in `git worktree list --porcelain` rather than pointing to
the branch ref. This caused `git checkout <branch>` to fail with exit
code 128 since git still considers the branch locked to that worktree.

Now detached worktrees are inspected for rebase state via
rebase-merge/head-name and rebase-apply/head-name, and any branch found
there is reported as 'rebase in progress' and skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor: address reviewer feedback on worktree support

- Rename mid_rebase_branches -> in_progress_branches; skip worktrees
  mid-cherry-pick, -merge, and -bisect in addition to mid-rebase
- Extract _get_worktree_meta_dir() helper to eliminate duplicated .git
  pointer-file parsing
- Add _worktree_has_in_progress_op() to detect cherry-pick/merge/bisect
- Add suppress_pop to stasher() so the stash is not popped when a
  rebase fails with conflicts
- Simplify _rebase_in_worktree() to use GitWrapper.stasher() and
  GitWrapper.rebase() instead of duplicating that logic

---------

Co-authored-by: Oz <oz-agent@warp.dev>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Markus Siemens <mark... (continued)

55 of 82 new or added lines in 2 files covered. (67.07%)

441 of 505 relevant lines covered (87.33%)

13.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
27
83.63
-5.52% PyGitUp/gitup.py
Jobs
ID Job ID Ran Files Coverage
1 31095981247.1 06 Aug 2026 11:07AM UTC 3
87.33
GitHub Action Run
2 31095981247.2 06 Aug 2026 11:07AM UTC 3
87.33
GitHub Action Run
3 31095981247.3 06 Aug 2026 11:07AM UTC 3
87.33
GitHub Action Run
4 31095981247.4 06 Aug 2026 11:07AM UTC 3
87.33
GitHub Action Run
5 31095981247.5 06 Aug 2026 11:07AM UTC 3
87.33
GitHub Action Run
6 31095981247.6 06 Aug 2026 11:08AM UTC 3
87.33
GitHub Action Run
7 31095981247.7 06 Aug 2026 11:08AM UTC 3
87.13
GitHub Action Run
8 31095981247.8 06 Aug 2026 11:08AM UTC 3
87.13
GitHub Action Run
9 31095981247.9 06 Aug 2026 11:08AM UTC 3
87.33
GitHub Action Run
10 31095981247.10 06 Aug 2026 11:08AM UTC 3
87.33
GitHub Action Run
11 31095981247.11 06 Aug 2026 11:09AM UTC 3
87.33
GitHub Action Run
12 31095981247.12 06 Aug 2026 11:09AM UTC 3
87.33
GitHub Action Run
13 31095981247.13 06 Aug 2026 11:09AM UTC 3
87.33
GitHub Action Run
14 31095981247.14 06 Aug 2026 11:09AM UTC 3
87.33
GitHub Action Run
15 31095981247.15 06 Aug 2026 11:13AM UTC 3
87.33
GitHub Action Run
Source Files on build 31095981247
  • Tree
  • List 3
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 37608b7e on github
  • Prev Build on master (#31094937547)
  • Next Build on master (#31096774844)
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