Keesun Baik 2015-03-11
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
+++ app/utils/AutoLinkRenderer.java
@@ -278,7 +278,7 @@
     private Link toValidSHALink(String prefix, Project project, String sha) {
         if (project != null) {
             try {
-                if (!project.isCodeAvailable()) {
+                if (!project.isCodeAvailable() || !project.isGit()) {
                     return Link.EMPTY_LINK;
                 }
 
Add a comment
List