From 6b104ae8e9567e755396083a42d7b28688de6784 Mon Sep 17 00:00:00 2001 From: Agent Date: Fri, 3 Apr 2026 06:58:39 +0000 Subject: [PATCH] fix: fix: disinto release creates branch from dirty working tree (#168) --- bin/disinto | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/disinto b/bin/disinto index 19167d9..e111a92 100755 --- a/bin/disinto +++ b/bin/disinto @@ -2943,12 +2943,14 @@ This PR creates a vault item for the release of version ${version}. 3. The vault runner will execute the release formula " - # Create branch + # Create branch from clean main cd "$ops_root" - git checkout -B "$branch_name" 2>/dev/null || git checkout "$branch_name" + git checkout main + git pull origin main + git checkout -B "$branch_name" main - # Add and commit - git add -A + # Add and commit only the vault TOML file + git add "vault/actions/${id}.toml" git commit -m "$pr_title" -m "$pr_body" 2>/dev/null || true # Push branch