Re: [PATCH] BUG: git push on an empty clone segfaults.
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:37
Johannes Schindelin [off-list ref] writes:
On Mon, 20 Apr 2009, Junio C Hamano wrote:quoted
Matthieu Moy [off-list ref] writes:quoted
Ideally, "git push" from an empty repository to another empty one should be a no-op, or perhaps should error out cleanly. Currently, it just segfaults.Didn't we see this fixed by Nguyễn with 55f0566 (get_local_heads(): do not return random pointer if there is no head, 2009-04-17)?I fetched from repo.or.cz and tested with 'master', and it was broken. Apparently git://repo.or.cz/git.git is lagging behind by 5 days. Pasky?
Unfortunately, that repository is outside of my direct control.
I push into the following four repositories:
k.org's master repository
git://repo.or.cz/alt-git.git/
git://git.sourceforge.jp/gitroot/git-core/git.git
git://git-core.git.sourceforge.net/gitroot/git-core
The k.org's master repository is mirrored (with small lag) to:
git://git.kernel.org/pub/scm/git/git.git
I suspect that Pasky mirrors that mirror (with some lag) to:
git://repo.or.cz/git.git
There may be some other mirrors of mirrors I do not know about.
I'd guess that people in the US are better off going to git.kernel.org,
Europeans to git://repo.or.cz/alt-git.git, and East Asians to
git.sourceforge.jp/.
I've already written about this elsewhere [*1*], but the sourceforge ones
are partial; they only have maint and master (and tags).
[Footnote]
*1* http://gitster.livejournal.com/31668.html