Browse Source

Fixed NPE on create repo with mixed case (issue-185)

tags/v1.2.1
James Moger 11 years ago
parent
commit
56d91368c3
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      docs/04_releases.mkd
  2. 2
    2
      src/com/gitblit/GitBlit.java

+ 1
- 0
docs/04_releases.mkd View File

@@ -6,6 +6,7 @@
#### fixes
- Fixed nullpointer on creating a repository with mixed case (issue 185)
- Fixed nullpointer when using web.allowForking = true && git.cacheRepositoryList = false (issue 182)
- Build project models from the repository model cache, when possible, to reduce page load time (issue 172)
- Fixed loading of Brazilian Portuguese translation from *nix server (github/inaiat)

+ 2
- 2
src/com/gitblit/GitBlit.java View File

@@ -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

Loading…
Cancel
Save