diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-24 13:46:12 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-24 13:46:12 -0400 |
commit | 4b9b3c972681db34b63e94f3df51627c2da62cf3 (patch) | |
tree | e83ca4f46ddd3a94b7ff7d135012b8653259de05 /src/main/java/com/gitblit/servlet | |
parent | d402f4ef29fc4b2b6a6376d03211b2941b77d72d (diff) | |
download | gitblit-4b9b3c972681db34b63e94f3df51627c2da62cf3.tar.gz gitblit-4b9b3c972681db34b63e94f3df51627c2da62cf3.zip |
Fix GITBLIT_HOME environment variable baseFolder support
Diffstat (limited to 'src/main/java/com/gitblit/servlet')
-rw-r--r-- | src/main/java/com/gitblit/servlet/GitblitContext.java | 6 |
1 files 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); |