git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Pushing symbolic references to remote repositories?

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Dec 23, 2012, 01:10 UTC
Message-ID
<CAMK1S_iKYb0sK+2+H1b7wAPjJGEhJHJk9eK1bsMqxOGKoJuipg@mail.gmail.com>
In-Reply-To
<7vy5gqq6w8.fsf@alter.siamese.dyndns.org>
On Sat, Dec 22, 2012 at 11:57 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> This is not limited to HEAD, any ref may want to be set up as a symref
>> at a remote repo.  For example, I want to set up a symref master ->
>> trunk at a repository I have no shell access to.
>
> That is exactly the "hosting side does not give you an easy way so
> pushing seems to be one plausible but not necessarily has to be the
> only way" case, so it is already covered in the discussion.

Just a minor FYI (and at the risk of tooting my own horn) but if the hosting side is gitolite, you can.set it up so that any user with write permissions to the repo can run 'git symbolic-ref' with arbitrary arguments even though he does not get a shell.

The "-m <reason>" has some constraints because gitolite does not allow a lot of characters in arguments to remote commands but that's mostly useless unless you have core.logAllRefUpdates set anyway.

Previous: Junio C Hamano
Message 6 of 6 in “Pushing symbolic references to remote repositories?”
  1. Dun PealDec 21, 2012
  2. Shawn PearceDec 21, 2012
  3. Junio C HamanoDec 21, 2012
  4. Andreas SchwabDec 22, 2012
  5. Junio C HamanoDec 22, 2012
  6. Sitaram ChamartyDec 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.