carson 2.16.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c0c99d97f1939fc304d067069e80b38319192a67c738ecfb2358d78e22bc5c6
4
- data.tar.gz: 2233f42b74551f7cea4445130c4a5acd06f47839bc27288673f9c60792c9659d
3
+ metadata.gz: 1489c32c54a8efbec17c73bc909ab85070f74946c610f24367e9df3efba32323
4
+ data.tar.gz: 1158faec2bdaa9e3bf8d3efc8dcdeace7cbe80507b864513f89e4bc335e89065
5
5
  SHA512:
6
- metadata.gz: c03226c3e685b672675e6aee16e4027d3f4ffb992a9ad6894a971a6c079d0f0f6c749e0806605109a588805788aa73f6e1c23aa0cec5ab448ee7d48f1c5c63c5
7
- data.tar.gz: c9587d82f0b6f75fe0146d74da495e229486a49d4fb39fc3b3a6e774391dbb6439f099f2f2474b2cf603a49c9eaf1ffeaaf416f2baf49f0ab303b6fcfd17c930
6
+ metadata.gz: 13a4e277f985f23f18651c1b697f5293b66cd2bbb335d76ad8d28ec0b0a4c87bf50fdbdcc09e8b23cd717ade089ba060de557646f21850465c2866b25d90b798
7
+ data.tar.gz: 0460adf85975e4ead6b8ab3a2f86aafe630589542274cd175204b118d368c646efbd98725090e6f89cd4b4e904d63d2be9256276b9da0372e7b5b39561a8b216
data/RELEASE.md CHANGED
@@ -5,6 +5,16 @@ Release-note scope rule:
5
5
  - `RELEASE.md` records only version deltas, breaking changes, and migration actions.
6
6
  - Operational usage guides live in `MANUAL.md` and `API.md`.
7
7
 
8
+ ## 2.16.1 — Template Propagation Cleanup Fix
9
+
10
+ ### What changed
11
+
12
+ - Template propagation now deletes the local `carson/template-sync` branch after worktree cleanup. Previously, the worktree was removed but the local branch it created was left behind in the governed repository, polluting the user's branch list.
13
+
14
+ ### No migration required
15
+
16
+ Run `carson refresh` — the fix takes effect immediately. Stale `carson/template-sync` branches in governed repos can be removed with `git branch -D carson/template-sync`.
17
+
8
18
  ## 2.16.0 — Auto-propagate Template Changes
9
19
 
10
20
  ### What changed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.16.0
1
+ 2.16.1
@@ -591,10 +591,11 @@ module Carson
591
591
  pr_url
592
592
  end
593
593
 
594
- # Removes the worktree regardless of state.
594
+ # Removes the worktree and the local sync branch it created.
595
595
  def template_propagate_cleanup!( worktree_dir: )
596
596
  git_run( "worktree", "remove", "--force", worktree_dir )
597
- puts_verbose "template_propagate: worktree cleaned up"
597
+ git_run( "branch", "-D", TEMPLATE_SYNC_BRANCH )
598
+ puts_verbose "template_propagate: worktree and local branch cleaned up"
598
599
  rescue StandardError => e
599
600
  puts_verbose "template_propagate: cleanup warning (#{e.message})"
600
601
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang