Ensured that RefUpdate cannot delete current branch
commit19ee2c0eb9e794d142d379b6a32ac7f5ee72b8d1
authorCharles O'Farrell <charleso@charleso.org>
Fri, 22 Aug 2008 22:45:44 +0000 (23 08:45 +1000)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 22 Aug 2008 23:22:59 +0000 (22 16:22 -0700)
treeea11df7495b8cb8d8a112cae4f42973a90bf06c0
parent8f1ecedd26337eed21fb49ef7b9a64427e240e9d
Ensured that RefUpdate cannot delete current branch

If attempted it will return a REJECTED_CURRENT_BRANCH Result.

[sp: Changed the branch test to use RefDatabase as this will
     give us a more reliable test for the ref name equality.]

Signed-off-by: Charles O'Farrell <charleso@charleso.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/RefUpdate.java