You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add git_is_tag() method to detect if a branch value is actually a tag,
and handle tags correctly during git_update():
- Tags are checked out directly with 'git checkout <tag>'
- Branches use the existing switch + merge logic
- Explicitly fetch tags with 'git fetch --tags'
This fixes the regression where updating from one tag to another
stopped working in v4.x (worked in v2.x).
The test now passes, demonstrating that tag updates work correctly.
Fixes#46
Copy file name to clipboardExpand all lines: CHANGES.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
## 4.1.2 (unreleased)
4
4
5
+
- Fix #46: Git tags in branch option are now correctly detected and handled during updates. Previously, updating from one tag to another failed because tags were incorrectly treated as branches.
6
+
[jensens]
7
+
5
8
- Fix #53: Per-package target setting now correctly overrides default-target when constructing checkout paths.
0 commit comments