git notes
Elan Ruusamäe
glen at pld-linux.org
Tue Apr 12 15:32:20 CEST 2016
On 22.03.2016 22:49, Elan Ruusamäe wrote:
> On 22.03.2016 18:42, Jakub Bogusz wrote:
>> On Mon, Mar 21, 2016 at 11:45:49PM +0200, Elan Ruusamäe wrote:
>>> i added git note to some commit
>>> but it appears not to be pushed out with just 'git push'. should it?
>> Notes are not pushed by default, one can do
>> $ git push origin refs/notes/commits
>> (or so)
>>
>
> so, as builder -a will setup fetch refs, why not setup similarily push
> refs?
>
> in the blog they say refs aren't very good when multiple authorities
> maintain them
> https://git-scm.com/blog/2010/08/25/notes.html
>
> or the push note refs aren't just setup because it's just not done?
so i tried to add:
git config --local --add "remote.$REMOTE_PLD.push"
'refs/notes/*:refs/notes/*'
which results:
[remote "origin"]
url = git://git.pld-linux.org/packages/owncloudclient.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = refs/notes/*:refs/notes/*
push = refs/notes/*:refs/notes/*
pushurl = ssh://git@git.pld-linux.org/packages/owncloudclient
but now `git push` does nothing, as it's configured to push only notes,
how to make it behave like before?
push = +refs/heads/*:refs/remotes/origin/*
or:
push = refs/heads/*:refs/remotes/origin/*
as i'm afraid this config would make it push all branches, not just
current branch...
--
glen
More information about the pld-devel-en
mailing list