
LikRendering: fixed bug
Problem: Trying to make a link from a SHA pattern string even it was in a SVN project. Solution: don't make a SHA link from SVN project.
@d73fc5b2925a81285c966ceee204c30e42e32ed1
--- app/utils/AutoLinkRenderer.java
+++ app/utils/AutoLinkRenderer.java
... | ... | @@ -278,7 +278,7 @@ |
278 | 278 |
private Link toValidSHALink(String prefix, Project project, String sha) { |
279 | 279 |
if (project != null) { |
280 | 280 |
try { |
281 |
- if (!project.isCodeAvailable()) { |
|
281 |
+ if (!project.isCodeAvailable() || !project.isGit()) { |
|
282 | 282 |
return Link.EMPTY_LINK; |
283 | 283 |
} |
284 | 284 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?