From 4b9b3c972681db34b63e94f3df51627c2da62cf3 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 24 Sep 2014 13:46:12 -0400 Subject: [PATCH] Fix GITBLIT_HOME environment variable baseFolder support --- src/main/java/com/gitblit/servlet/GitblitContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/servlet/GitblitContext.java b/src/main/java/com/gitblit/servlet/GitblitContext.java index fcc702bb..64d68e77 100644 --- a/src/main/java/com/gitblit/servlet/GitblitContext.java +++ b/src/main/java/com/gitblit/servlet/GitblitContext.java @@ -317,9 +317,9 @@ public class GitblitContext extends DaggerContext { logger.error(""); } - String baseFromJndi = lookupBaseFolderFromJndi(); - if (!StringUtils.isEmpty(baseFromJndi)) { - path = baseFromJndi; + String externalBase = System.getProperty("GITBLIT_HOME", lookupBaseFolderFromJndi()); + if (!StringUtils.isEmpty(externalBase)) { + path = externalBase; } File base = com.gitblit.utils.FileUtils.resolveParameter(Constants.contextFolder$, contextFolder, path); -- 2.39.5