From d73fc5b2925a81285c966ceee204c30e42e32ed1 Mon Sep 17 00:00:00 2001 From: Keesun Baik Date: Wed, 11 Mar 2015 10:02:25 +0900 Subject: [PATCH] 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. --- app/utils/AutoLinkRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/AutoLinkRenderer.java b/app/utils/AutoLinkRenderer.java index 60fc3e7d6..d3e360fcd 100644 --- a/app/utils/AutoLinkRenderer.java +++ b/app/utils/AutoLinkRenderer.java @@ -278,7 +278,7 @@ private Link toValidSHALink(Project project, String SHA) { 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; }