throw exception if label doesn't exist

This commit is contained in:
John Moon
2016-08-25 09:20:34 -04:00
parent c0563be4da
commit d2ce0e18c1

View File

@@ -185,6 +185,9 @@ public class SvnKitEnvironmentRepository extends AbstractScmEnvironmentRepositor
svnPath = new File(workingDirectory, "branches" + File.separator + label);
if(!svnPath.exists()) {
svnPath = new File(workingDirectory, "tags" + File.separator + label);
if(!svnPath.exists()) {
throw new NoSuchLabelException("No label found for: " + label);
}
}
}
return svnPath;