]> source.dussan.org Git - jgit.git/commit
Fix branch ref exist check 74/204974/3
authorflorian.signoret <florian.signoret@ibm.com>
Mon, 16 Oct 2023 14:08:14 +0000 (16:08 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 17 Nov 2023 23:05:35 +0000 (00:05 +0100)
commite4a341db43d5d8a1e6e9c828e3b3e5ddd52b9186
tree0d1dc9118c9e165222cea4cda8cfd122c82cbc87
parent52af8dbaff46191203b033f05a9fbc1ff0a46886
Fix branch ref exist check

When a tag with the same name as the branch exists, the branch creation
process should work too. We should detect that the branch already
exists, and allow to force create it when the force option is used.

Bug: 582538
Change-Id: I3b350d03be8edcde10e97b2318343240ca896cb0
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java