Clean up exception issues in RemoteRefUpdate
commit76a2953e3d35a7a184ab78df28121c8a2e0bc651
authorMarek Zawirski <marek.zawirski@gmail.com>
Sat, 16 Aug 2008 02:03:06 +0000 (16 04:03 +0200)
committerMarek Zawirski <marek.zawirski@gmail.com>
Sat, 16 Aug 2008 13:45:57 +0000 (16 15:45 +0200)
tree3dff65c87737df33b0d93398e1991d33293b7c00
parenta2aeb0d6d800180ffd46494321f1d1120383f45e
Clean up exception issues in RemoteRefUpdate

IllegalArgumentException was probably a wrong choice for exception
thrown in RemoteRefUpdate when src object can't be resolved - it should
be checked one.

Now it's IOException, which makes call more safe for external clients.

Signed-off-by: Marek Zawirski <marek.zawirski@gmail.com>
org.spearce.jgit/src/org/spearce/jgit/transport/RemoteRefUpdate.java
org.spearce.jgit/src/org/spearce/jgit/transport/Transport.java