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

Re: git-push and $GIT_DIR/branches

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Nov 7, 2008, 20:44 UTC
Message-ID
<20081107204451.GA10394@auto.tuwien.ac.at>
In-Reply-To
<7vljvvh61y.fsf@gitster.siamese.dyndns.org>
On Fri, Nov 07, 2008 at 08:08:57AM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> mkoegler@auto.tuwien.ac.at (Martin Koegler) writes:
> 
> > I think, that the git-push behaviour is a bit unlogical in conjunction
> > with $GIT_DIR/branches.
> 
> That is because it is illogical to use $GIT_DIR/branches in conjunction
> with git; the former is a backward compatibility wart with Cogito which is
> now dead.

I'm aware, that $GIT_DIR/branches origins from Cogito and are not recommended. But eg. Documentation/urls-remotes.txt does not reflect this.

I asume, that you [and probably many other] are not very interrested in this feature. But would you accept a patch changing the push refspec to HEAD:refs/heads/<head>?

mfg Martin Kögler
Previous: Martin KoeglerNext: Junio C Hamano
Message 2 of 3 in “git-push and $GIT_DIR/branches”
  1. Martin KoeglerNov 7, 2008
  2. Martin KoeglerNov 7, 2008
  3. Junio C HamanoNov 7, 2008

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.