From: Matthieu Moy Date: Mon, 20 Apr 2009 11:07:15 GMT Subject: Re: [PATCH] BUG: git push on an empty clone segfaults. Message-ID: In-Reply-To: <7vfxg3ipib.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Matthieu Moy writes: > >> 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)? Oops, right, I wasn't up to date. Still, the test-case is relevant, I'll resend with test_expect_success. -- Matthieu