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; }