]> source.dussan.org Git - jgit.git/commit
Fix server side NPE during push to empty repository 52/252/1
authorShawn O. Pearce <spearce@spearce.org>
Mon, 1 Feb 2010 08:51:28 +0000 (00:51 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 1 Feb 2010 08:52:23 +0000 (00:52 -0800)
commitefa8b52df5627b0d0d17e312e9d585b6232ceed6
treef15e09311d7c1be0f67297ddd9f4b987ada7a517
parent8c2d0455d1d98a4f3d57515d048d33a8c7199730
Fix server side NPE during push to empty repository

If the repository is empty, we have no HEAD branch, which means we
can't test to see if the HEAD is detached and should be advertised
as a .have line.

Change-Id: I6e85f836e7db057cede812d0d6c1aecbd6cbe6c5
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java