Fix DWIMery for push to handle non-existant source refs
commit9057f1bc4679f93535f6ae13a716c41b4ece2630
authorShawn O. Pearce <spearce@spearce.org>
Mon, 9 Mar 2009 22:11:19 +0000 (9 23:11 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 9 Mar 2009 22:13:14 +0000 (9 23:13 +0100)
treeb6f2d0821ad3028b0555724ca26a9ce0619bf24e
parentc25c05c4c73faf1cd11867a603764c790bee4b42
Fix DWIMery for push to handle non-existant source refs

Instead of a StringIndexOutOfBoundsException we now get an error
telling us that the ref could not be resolved.

Found-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/Transport.java