Fix RefWriter creation of info/refs to omit HEAD
commitde45869e1dc28fa99951709b9485a35dbcea4444
authorShawn O. Pearce <spearce@spearce.org>
Mon, 4 Jan 2010 23:00:45 +0000 (4 15:00 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 12 Jan 2010 19:56:55 +0000 (12 11:56 -0800)
tree24fd78b4a67b126cf8a134c7adb8da9e18e17f9b
parentf88cac039eaa834859b2b2e748c0d8bb0ad82e67
Fix RefWriter creation of info/refs to omit HEAD

We really mean to omit HEAD here, but botched the difference between
getOrigName and getName on the Ref object.  We tested on the wrong
value, picking up the target of the symbolic ref and therefore
included it twice.

Change-Id: If780c65166ccada2e63a4f42bbab752a56b16564
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefWriter.java