]> source.dussan.org Git - jgit.git/commit
TagCommand: make -f work with lightweight tags for NO_CHANGE 33/173533/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 8 Dec 2020 13:52:00 +0000 (14:52 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 8 Dec 2020 21:20:45 +0000 (22:20 +0100)
commit29e1270768f217f7c8471d771d90ff43135d7c26
tree35ab0c407f764de747b6f522d975f0659fc8802d
parentdc8a927ce40c801a0c777cfb477cfad4aab5c1c3
TagCommand: make -f work with lightweight tags for NO_CHANGE

JGit treated a NO_CHANGE RefUpdate as an error in all cases. But when
updating a lightweight tag, this is a successful result if -f was
specified.

Change-Id: Iddfa6d6a6dc8bf8fed81138a008ebc32d5f960bd
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/TagCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/TagCommand.java