diff options
author | James Moger <james.moger@gitblit.com> | 2013-01-05 17:22:19 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-01-05 17:22:19 -0500 |
commit | 56d91368c3af957681951d3e34de54f025448d72 (patch) | |
tree | 5a40c02039029030222026e798663fbcb1a27ee0 /src | |
parent | 1b1c19572fc67a1f0f71799739c4bfe53558ec41 (diff) | |
download | gitblit-56d91368c3af957681951d3e34de54f025448d72.tar.gz gitblit-56d91368c3af957681951d3e34de54f025448d72.zip |
Fixed NPE on create repo with mixed case (issue-185)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/GitBlit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java index 74d32df0..3eb246b8 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -1371,8 +1371,8 @@ public class GitBlit implements ServletContextListener { if (config.isOutdated()) {
// reload model
logger.info(MessageFormat.format("Config for \"{0}\" has changed. Reloading model and updating cache.", repositoryName));
- model = loadRepositoryModel(repositoryName);
- removeFromCachedRepositoryList(repositoryName);
+ model = loadRepositoryModel(model.name);
+ removeFromCachedRepositoryList(model.name);
addToCachedRepositoryList(model);
} else {
// update a few repository parameters
|