diff options
author | Robin Stocker <robin@nibor.org> | 2013-05-25 15:56:50 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2013-05-26 01:25:10 +0200 |
commit | 7bb2a1b8440386dead8b72c329b92e2473e89e32 (patch) | |
tree | 324c1e637e5237c4a9533b986c19102c3e60cb98 /org.eclipse.jgit.pgm.test/pom.xml | |
parent | 67783d7ded4ee05a88fde135036d2be976385641 (diff) | |
download | jgit-7bb2a1b8440386dead8b72c329b92e2473e89e32.tar.gz jgit-7bb2a1b8440386dead8b72c329b92e2473e89e32.zip |
Handle short branch/tag name for setBranch in CloneCommand
Before, it was not clear from the documentation what kind of branch name
was accepted. Users specifying "branch" (instead of "refs/heads/branch")
got no error message and ended up with a repository without HEAD and no
checkout.
With this, CloneCommand now tries "$branch", then "refs/heads/$branch"
and then "refs/tags/$branch". C Git only does the last two, but for
compatibility we should still allow "refs/heads/branch".
Bug: 390994
Change-Id: I4be13144f2a21a6583e0942f0c7c40da32f2247a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/pom.xml')
0 files changed, 0 insertions, 0 deletions