]> source.dussan.org Git - jgit.git/commit
Allow @ in branch names and tighten syntax checking 69/7569/8
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 23 Sep 2012 13:18:19 +0000 (15:18 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 23 Sep 2012 13:18:19 +0000 (15:18 +0200)
commit094df5a916db6060fa7f7d8c1f61cc0b970a9433
treede195e4acbe03874e73b0130df05c74dab708b5b
parent78c865942849de420592bb822e9e1fd85cc95ade
Allow @ in branch names and tighten syntax checking

Valid refs are defined by git-check-ref-format(1). In addition
we will not try to perform a lookup of an invalid ref name in
Repository.resolve().

Reported by R Shapiro in the Eclipse JGit Forum.

Change-Id: I0b098eec9ecb98a9ce16b1cfb476729aaf2fb190
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryResolveTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java