diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 11:35:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:26:15 +0000 |
| commit | 237ab4ebcdc5bf58f98958db5375d56baf8046a0 (patch) | |
| tree | d0d2114fbe4b77e2dedcc6191c1622022c8a6695 /CHANGELOG.md | |
| parent | 5c305e922e19e4ac65c6a1473be67145a1c73f2b (diff) | |
fix: correct refspec source in ngit sync to strip refs/heads/ prefix
When syncing, the nostr state stores refs with full names like
refs/heads/master and refs/tags/v1.0.0. Git tracking refs strip the
refs/heads/ prefix, so the tracking ref lives at refs/remotes/origin/master
not refs/remotes/origin/refs/heads/master.
The sync code was interpolating the full nostr_ref_name into the source
side of the refspec, producing the invalid double-prefixed path. Strip
refs/heads/ or refs/tags/ before constructing the tracking ref segment,
consistent with how git_remote_nostr/push.rs already handles this.
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 3d58e1d..e6a7721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
| 11 | 11 | ||
| 12 | - git server push option passthrough, enabling `-o secret-scanning.skip` for grasp servers | 12 | - git server push option passthrough, enabling `-o secret-scanning.skip` for grasp servers |
| 13 | 13 | ||
| 14 | ### Fixed | ||
| 15 | |||
| 16 | - `ngit sync` using wrong refspec source (`refs/remotes/origin/refs/heads/master` instead of `refs/remotes/origin/master`), causing sync to fail with "src refspec does not match any existing object" | ||
| 17 | |||
| 14 | ## [2.2.1] - 2026-02-25 | 18 | ## [2.2.1] - 2026-02-25 |
| 15 | 19 | ||
| 16 | ### Fixed | 20 | ### Fixed |