git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Commit Notes (fetching/pushing)
@ 2023-08-06 18:35 Brooke Kuhlmann
  2023-08-06 20:09 ` Taylor Blau
  0 siblings, 1 reply; 7+ messages in thread
From: Brooke Kuhlmann @ 2023-08-06 18:35 UTC (permalink / raw)
  To: git

I'm noticing issues with GitHub and GitLab when fetching and pushing commit notes and wanted to know if there is a correct way to configure my Git configuration for working with these servers (or maybe notes aren't supported at al)?

Here's my configuration:

```
[notes]
  rewriteRef = refs/notes/commits

[remote "origin"]
  fetch = +refs/notes/*:refs/notes/*
  push = +refs/notes/*:refs/notes/*
```

Upon creating a note (i.e. `git notes add`) and then pushing changes to the remote, I'll see the following response from GitHub:

``` 
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 289 bytes | 289.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/bkuhlmann/test
   5811bd44c32b..0f2422597c5d  refs/notes/commits -> refs/notes/commits
```

Only problem is the notes are not pushed. In fact, the feature branch I'm working is never updated. Only when removing my `[remote "origin"]` Git configuration does the GitHub server work properly (i.e. my changes are pushed to the remote server...but without any notes). Strangely, in all cases GitHub answers back with a success message even though that is incorrect.

Anyway, if anyone has advice or additional information how this should work (or if my configuration is wrong), I'd be grateful. 🙇🏻‍♂️





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-07 20:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 18:35 Git Commit Notes (fetching/pushing) Brooke Kuhlmann
2023-08-06 20:09 ` Taylor Blau
2023-08-06 21:49   ` Brooke Kuhlmann
2023-08-07  1:07     ` Junio C Hamano
2023-08-07 14:02       ` Brooke Kuhlmann
2023-08-07 16:14         ` Junio C Hamano
2023-08-07 20:18           ` Brooke Kuhlmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).