Skip to content

Commit fe0fa38

Browse files
committed
getTagByName fixed
1 parent e98b5f9 commit fe0fa38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scm4j/vcs/svn/SVNVCS.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,9 @@ public Boolean isRevisionTagged(String revision) {
761761
@Override
762762
public VCSTag getTagByName(String tagName) {
763763
try {
764+
if (repository.info(TAGS_PATH + tagName, -1L) == null) {
765+
return null;
766+
}
764767
SVNLogEntry entry = revToSVNEntry(TAGS_PATH + tagName, -1L);
765768

766769
Long copyFromRevision = -1L;

0 commit comments

Comments
 (0)