* Symbolic refs and the git protocol? @ 2011-09-25 13:17 Avi Kivity 2011-09-25 13:42 ` Sitaram Chamarty 2011-09-25 18:50 ` Ilari Liusvaara 0 siblings, 2 replies; 7+ messages in thread From: Avi Kivity @ 2011-09-25 13:17 UTC (permalink / raw) To: Git Mailing List With the old kernel.org setup, practically the only think I needed to do on the server itself is the 'git symbolic-ref' command (used to point refs/heads/linux-next at the correct stream). Now it looks like kernel.org will no longer offer shell access. Is it possible to support symbolic-ref via 'git push'? -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-25 13:17 Symbolic refs and the git protocol? Avi Kivity @ 2011-09-25 13:42 ` Sitaram Chamarty 2011-09-25 13:48 ` Avi Kivity 2011-09-25 18:50 ` Ilari Liusvaara 1 sibling, 1 reply; 7+ messages in thread From: Sitaram Chamarty @ 2011-09-25 13:42 UTC (permalink / raw) To: Avi Kivity; +Cc: Git Mailing List, John Hawley On Sun, Sep 25, 2011 at 6:47 PM, Avi Kivity <avi@redhat.com> wrote: > With the old kernel.org setup, practically the only think I needed to do on > the server itself is the 'git symbolic-ref' command (used to point > refs/heads/linux-next at the correct stream). > > Now it looks like kernel.org will no longer offer shell access. Is it > possible to support symbolic-ref via 'git push'? Can I assume you mean specifically for HEAD, as in 'git symbolic-ref HEAD refs/heads/some-branch'? Although gitolite disables shell access by design, it provides several (optionally installed) features to allow specific shell commands to be executed. One such command is "set-head", which does exactly what you ask. You run it like 'ssh git@server set-head reponame.git refs/heads/foo' and it ends up running 'git symbolic-ref HEAD refs/heads/foo' in the repo. I realise that does not answer "can it be done via git push" but I thought it might help... ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-25 13:42 ` Sitaram Chamarty @ 2011-09-25 13:48 ` Avi Kivity 2011-09-25 14:10 ` Sitaram Chamarty 0 siblings, 1 reply; 7+ messages in thread From: Avi Kivity @ 2011-09-25 13:48 UTC (permalink / raw) To: Sitaram Chamarty; +Cc: Git Mailing List, John Hawley On 09/25/2011 04:42 PM, Sitaram Chamarty wrote: > On Sun, Sep 25, 2011 at 6:47 PM, Avi Kivity<avi@redhat.com> wrote: > > With the old kernel.org setup, practically the only think I needed to do on > > the server itself is the 'git symbolic-ref' command (used to point > > refs/heads/linux-next at the correct stream). > > > > Now it looks like kernel.org will no longer offer shell access. Is it > > possible to support symbolic-ref via 'git push'? > > Can I assume you mean specifically for HEAD, as in 'git symbolic-ref > HEAD refs/heads/some-branch'? No, I use them for ordinary branches, for example git symbolic-ref refs/heads/linux-next refs/heads/kvm-updates/3.2 from this point on, any update to kvm-updates/3.2 will be reflected in the linux-next ref. > Although gitolite disables shell access by design, it provides several > (optionally installed) features to allow specific shell commands to be > executed. One such command is "set-head", which does exactly what you > ask. You run it like 'ssh git@server set-head reponame.git > refs/heads/foo' and it ends up running 'git symbolic-ref HEAD > refs/heads/foo' in the repo. > > I realise that does not answer "can it be done via git push" but I > thought it might help... Well, if set-head can be extended a bit, it would suit me perfectly. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-25 13:48 ` Avi Kivity @ 2011-09-25 14:10 ` Sitaram Chamarty 2011-09-26 14:23 ` Sitaram Chamarty 0 siblings, 1 reply; 7+ messages in thread From: Sitaram Chamarty @ 2011-09-25 14:10 UTC (permalink / raw) To: Avi Kivity; +Cc: Git Mailing List, John Hawley On Sun, Sep 25, 2011 at 7:18 PM, Avi Kivity <avi@redhat.com> wrote: > On 09/25/2011 04:42 PM, Sitaram Chamarty wrote: >> >> On Sun, Sep 25, 2011 at 6:47 PM, Avi Kivity<avi@redhat.com> wrote: >> > With the old kernel.org setup, practically the only think I needed to >> > do on >> > the server itself is the 'git symbolic-ref' command (used to point >> > refs/heads/linux-next at the correct stream). >> > >> > Now it looks like kernel.org will no longer offer shell access. Is it >> > possible to support symbolic-ref via 'git push'? >> >> Can I assume you mean specifically for HEAD, as in 'git symbolic-ref >> HEAD refs/heads/some-branch'? > > No, I use them for ordinary branches, for example > > git symbolic-ref refs/heads/linux-next refs/heads/kvm-updates/3.2 > > from this point on, any update to kvm-updates/3.2 will be reflected in the > linux-next ref. > >> Although gitolite disables shell access by design, it provides several >> (optionally installed) features to allow specific shell commands to be >> executed. One such command is "set-head", which does exactly what you >> ask. You run it like 'ssh git@server set-head reponame.git >> refs/heads/foo' and it ends up running 'git symbolic-ref HEAD >> refs/heads/foo' in the repo. >> >> I realise that does not answer "can it be done via git push" but I >> thought it might help... > > Well, if set-head can be extended a bit, it would suit me perfectly. no reason it can't; shorn of all the argument/access checking, it's a very simple shell script -- Sitaram ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-25 14:10 ` Sitaram Chamarty @ 2011-09-26 14:23 ` Sitaram Chamarty 2011-09-26 14:49 ` Avi Kivity 0 siblings, 1 reply; 7+ messages in thread From: Sitaram Chamarty @ 2011-09-26 14:23 UTC (permalink / raw) To: Avi Kivity; +Cc: Git Mailing List, John Hawley On Sun, Sep 25, 2011 at 7:40 PM, Sitaram Chamarty <sitaramc@gmail.com> wrote: > On Sun, Sep 25, 2011 at 7:18 PM, Avi Kivity <avi@redhat.com> wrote: >> On 09/25/2011 04:42 PM, Sitaram Chamarty wrote: >>> >>> On Sun, Sep 25, 2011 at 6:47 PM, Avi Kivity<avi@redhat.com> wrote: >>> > With the old kernel.org setup, practically the only think I needed to >>> > do on >>> > the server itself is the 'git symbolic-ref' command (used to point >>> > refs/heads/linux-next at the correct stream). >>> > >>> > Now it looks like kernel.org will no longer offer shell access. Is it >>> > possible to support symbolic-ref via 'git push'? >>> >>> Can I assume you mean specifically for HEAD, as in 'git symbolic-ref >>> HEAD refs/heads/some-branch'? >> >> No, I use them for ordinary branches, for example >> >> git symbolic-ref refs/heads/linux-next refs/heads/kvm-updates/3.2 >> >> from this point on, any update to kvm-updates/3.2 will be reflected in the >> linux-next ref. >> >>> Although gitolite disables shell access by design, it provides several >>> (optionally installed) features to allow specific shell commands to be >>> executed. One such command is "set-head", which does exactly what you >>> ask. You run it like 'ssh git@server set-head reponame.git >>> refs/heads/foo' and it ends up running 'git symbolic-ref HEAD >>> refs/heads/foo' in the repo. >>> >>> I realise that does not answer "can it be done via git push" but I >>> thought it might help... >> >> Well, if set-head can be extended a bit, it would suit me perfectly. > > no reason it can't; shorn of all the argument/access checking, it's a > very simple shell script Done. https://github.com/sitaramc/gitolite/commit/a2fd597c51a086a0f7298c1641337faa0f296a62 I like this much better actually, so thanks for the idea. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-26 14:23 ` Sitaram Chamarty @ 2011-09-26 14:49 ` Avi Kivity 0 siblings, 0 replies; 7+ messages in thread From: Avi Kivity @ 2011-09-26 14:49 UTC (permalink / raw) To: Sitaram Chamarty; +Cc: Git Mailing List, John Hawley On 09/26/2011 05:23 PM, Sitaram Chamarty wrote: > On Sun, Sep 25, 2011 at 7:40 PM, Sitaram Chamarty<sitaramc@gmail.com> wrote: > > On Sun, Sep 25, 2011 at 7:18 PM, Avi Kivity<avi@redhat.com> wrote: > >> On 09/25/2011 04:42 PM, Sitaram Chamarty wrote: > >>> > >>> On Sun, Sep 25, 2011 at 6:47 PM, Avi Kivity<avi@redhat.com> wrote: > >>> > With the old kernel.org setup, practically the only think I needed to > >>> > do on > >>> > the server itself is the 'git symbolic-ref' command (used to point > >>> > refs/heads/linux-next at the correct stream). > >>> > > >>> > Now it looks like kernel.org will no longer offer shell access. Is it > >>> > possible to support symbolic-ref via 'git push'? > >>> > >>> Can I assume you mean specifically for HEAD, as in 'git symbolic-ref > >>> HEAD refs/heads/some-branch'? > >> > >> No, I use them for ordinary branches, for example > >> > >> git symbolic-ref refs/heads/linux-next refs/heads/kvm-updates/3.2 > >> > >> from this point on, any update to kvm-updates/3.2 will be reflected in the > >> linux-next ref. > >> > >>> Although gitolite disables shell access by design, it provides several > >>> (optionally installed) features to allow specific shell commands to be > >>> executed. One such command is "set-head", which does exactly what you > >>> ask. You run it like 'ssh git@server set-head reponame.git > >>> refs/heads/foo' and it ends up running 'git symbolic-ref HEAD > >>> refs/heads/foo' in the repo. > >>> > >>> I realise that does not answer "can it be done via git push" but I > >>> thought it might help... > >> > >> Well, if set-head can be extended a bit, it would suit me perfectly. > > > > no reason it can't; shorn of all the argument/access checking, it's a > > very simple shell script > > Done. > > https://github.com/sitaramc/gitolite/commit/a2fd597c51a086a0f7298c1641337faa0f296a62 > > I like this much better actually, so thanks for the idea. Thanks very much for the rapid response and update! John, can we get this into the new kernel.org infrastructure? -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbolic refs and the git protocol? 2011-09-25 13:17 Symbolic refs and the git protocol? Avi Kivity 2011-09-25 13:42 ` Sitaram Chamarty @ 2011-09-25 18:50 ` Ilari Liusvaara 1 sibling, 0 replies; 7+ messages in thread From: Ilari Liusvaara @ 2011-09-25 18:50 UTC (permalink / raw) To: Avi Kivity; +Cc: Git Mailing List On Sun, Sep 25, 2011 at 04:17:31PM +0300, Avi Kivity wrote: > > Now it looks like kernel.org will no longer offer shell access. Is > it possible to support symbolic-ref via 'git push'? AFAIK, no, it isn't. -Ilari ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-09-26 14:49 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-09-25 13:17 Symbolic refs and the git protocol? Avi Kivity 2011-09-25 13:42 ` Sitaram Chamarty 2011-09-25 13:48 ` Avi Kivity 2011-09-25 14:10 ` Sitaram Chamarty 2011-09-26 14:23 ` Sitaram Chamarty 2011-09-26 14:49 ` Avi Kivity 2011-09-25 18:50 ` Ilari Liusvaara
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).