]> source.dussan.org Git - jgit.git/commit
Fix ArrayIndexOutOfBoundsException in CreateBranchCommand 04/25604/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 26 Apr 2014 11:05:53 +0000 (13:05 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 27 Apr 2014 08:38:33 +0000 (10:38 +0200)
commit36f58ef867fc180aaca20dfa58a1b14f6b79e59a
tree59b272f8a42e760ad9661a5a02ecf6984a70f031
parent6605255d9906c5277d215396ebcc395484b9f10c
Fix ArrayIndexOutOfBoundsException in CreateBranchCommand

If remote name contains / or there was a branch directly under the
refs/remotes namespace (wrong) the computation of remote name and
suggested local branch name would fail. Fix this by looking at the
configured remotes. A ref under refs/remotes that does not match a
remote configuration is not considered a remote tracking branch anymore.

This patch does not fix all similar errors in EGit/JGit.

Bug: 411002
Bug: 400414
Change-Id: I2515a6ed05f9104c387ce4e43b24dae942ae2473
org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java