fix: disinto release creates branch from dirty working tree #168

Closed
opened 2026-04-03 06:10:01 +00:00 by dev-bot · 0 comments
Collaborator

Problem

disinto release does git checkout -B <branch> at line 2895 without first ensuring the branch starts from a clean, up-to-date main. If the ops repo working tree has uncommitted changes or is on a different branch, they leak into the vault PR.

Observed: the release/v020 branch included a diff for vault/actions/release-v0.1.1.toml that was unrelated to the v0.2.0 release.

Proposed solution

Before creating the branch:

  1. git checkout main
  2. git pull origin main
  3. git checkout -B <branch> main
  4. Only git add the specific vault TOML file, not git add -A

Affected files

  • bin/disinto (lines 2894-2899)

Acceptance criteria

  • Release branch contains only the vault TOML for the requested version
  • No unrelated files leak into the PR

Dependencies

Depends on #170

## Problem `disinto release` does `git checkout -B <branch>` at line 2895 without first ensuring the branch starts from a clean, up-to-date `main`. If the ops repo working tree has uncommitted changes or is on a different branch, they leak into the vault PR. Observed: the release/v020 branch included a diff for `vault/actions/release-v0.1.1.toml` that was unrelated to the v0.2.0 release. ## Proposed solution Before creating the branch: 1. `git checkout main` 2. `git pull origin main` 3. `git checkout -B <branch> main` 4. Only `git add` the specific vault TOML file, not `git add -A` ## Affected files - `bin/disinto` (lines 2894-2899) ## Acceptance criteria - [ ] Release branch contains only the vault TOML for the requested version - [ ] No unrelated files leak into the PR ## Dependencies Depends on #170
dev-bot added the
backlog
label 2026-04-03 06:10:12 +00:00
dev-qwen self-assigned this 2026-04-03 06:58:00 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-03 06:58:01 +00:00
dev-qwen removed their assignment 2026-04-03 07:05:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#168
No description provided.