diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-27 17:17:12 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-27 17:19:20 +0000 |
| commit | e7d7f933cd7eac19434f09096a311adeb5e60747 (patch) | |
| tree | 898c28edec9555f8ef66b0b629de9dea5a535541 /CHANGELOG.md | |
| parent | 7ca0db29952ddbb27d74e30937562210cfbba56a (diff) | |
fix: skip ^{} peeled-tag refs in sync to prevent invalid refspec crash
Regression introduced in 28ad5440: ngit sync crashed with
'invalid refspec refs/remotes/origin/v1.4.4^{}:refs/tags/v1.4.4^{}'
on repos with annotated tags. Fixed by guarding all three iteration
sites in sync.rs and identify_remote_sync_issues in list.rs; also
corrected the always-false logic bug in invalid_nostr_state_ref.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a86ceea..d4d0a49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
| 7 | 7 | ||
| 8 | ## [Unreleased] | 8 | ## [Unreleased] |
| 9 | 9 | ||
| 10 | ### Fixed | ||
| 11 | |||
| 12 | - Regression introduced in 28ad5440: `ngit sync` crashed with "invalid refspec refs/remotes/origin/v1.4.4^{}:refs/tags/v1.4.4^{}" on repos with annotated tags; `RepoState::try_from` now retains `^{}` peeled-tag entries in state, but the sync refspec builder did not skip them; fixed by guarding all three iteration sites in sync.rs and `identify_remote_sync_issues` in list.rs; also corrected the always-false logic bug in `invalid_nostr_state_ref` | ||
| 13 | |||
| 10 | ## [2.2.2] - 2026-02-27 | 14 | ## [2.2.2] - 2026-02-27 |
| 11 | 15 | ||
| 12 | ### Added | 16 | ### Added |