]> source.dussan.org Git - jgit.git/commit
Fixed creation of branch from a tag 16/3816/3
authorSasa Zivkov <sasa.zivkov@sap.com>
Tue, 5 Jul 2011 12:06:49 +0000 (14:06 +0200)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 12 Jul 2011 15:48:59 +0000 (10:48 -0500)
commit1d4a1fe772745e80312543c0e4bf36974df49d4e
tree79abc37fa7bdfa830d26b39fdc779f9e52dee723
parentf0060f64a77b00e5cb164039eeae854c7aff38d0
Fixed creation of branch from a tag

Creation of a branch X from an annotated tag, as the starting point,
resulted into .git/refs/heads/X containing the ID of the annotated tag
instead of the ID of the tagged commit.

This fix peels the tag ref before using it as the starting point for
the newly created branch.

Bug: 340836
Change-Id: I01c7325770ecb37f5bf8ddb2a22f802466524f24
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CreateBranchCommand.java