Patch Set 1:

The test build came with a lot of errors...

Results :

Tests in error: 
  testPullConfigRenameLocalBranch(org.eclipse.jgit.api.BranchCommandTest)
  testRenameLocalBranch(org.eclipse.jgit.api.BranchCommandTest)
  testRenameRemoteTrackingBranch(org.eclipse.jgit.api.BranchCommandTest)
  testGetRefs_IgnoresGarbageRef2(org.eclipse.jgit.storage.file.RefDirectoryTest)
  testRenameBranchNoPreviousLog(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchHasPreviousLog(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameCurrentBranch(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchAlsoInPack(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisFromLockHEAD(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisFromLockFrom(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisFromLockTo(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisToLockFrom(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisToLockTo(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisOtherLockFrom(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameBranchCannotLockAFileHEADisOtherLockTo(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameRefNameColission1avoided(org.eclipse.jgit.storage.file.RefUpdateTest)
  testRenameRefNameColission2avoided(org.eclipse.jgit.storage.file.RefUpdateTest)