]> source.dussan.org Git - jgit.git/commit
Validate branch names on branch creation 72/124272/7
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 8 Jun 2018 15:45:00 +0000 (17:45 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 8 Jun 2018 23:20:13 +0000 (01:20 +0200)
commit62460b42b7a64513e3421aae17082fdc923faf95
tree9a09ec56d6e9bd87c734d5606333bbd2298a5691
parent5f27032fb85694a093f827581216d4ffb99db68b
Validate branch names on branch creation

Since v2.16.0-rc0~89^2~1 (branch: correctly reject
refs/heads/{-dash,HEAD}, 2017-11-14),
native git does not allow branch names
- refs/heads/HEAD
- starting with '-'

Bug: 535655
Change-Id: Ib1c4ec9ea844073901a4ebe6a29ff6cc8ae58e93
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java