James Moger
2011-06-05 f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b
src/com/gitblit/GitBlit.java
@@ -142,7 +142,7 @@
   public List<String> getRepositoryList() {
      return JGitUtils.getRepositoryList(repositoriesFolder, exportAll,
            storedSettings.getBoolean(Keys.git.nestedRepositories, true));
            storedSettings.getBoolean(Keys.git.searchRepositoriesSubfolders, true));
   }
   public Repository getRepository(String repositoryName) {
@@ -203,6 +203,7 @@
               "accessRestriction", null));
         model.showRemoteBranches = getConfig(config, "showRemoteBranches", false);
         model.isFrozen = getConfig(config, "isFrozen", false);
         model.showReadme = getConfig(config, "showReadme", false);
      }
      r.close();
      return model;
@@ -224,6 +225,10 @@
         boolean isCreate) throws GitBlitException {
      Repository r = null;
      if (isCreate) {
         // ensure created repository name ends with .git
         if (!repository.name.endsWith(org.eclipse.jgit.lib.Constants.DOT_GIT_EXT)) {
            repository.name += org.eclipse.jgit.lib.Constants.DOT_GIT_EXT;
         }
         if (new File(repositoriesFolder, repository.name).exists()) {
            throw new GitBlitException(MessageFormat.format(
                  "Can not create repository ''{0}'' because it already exists.",
@@ -278,6 +283,7 @@
               repository.accessRestriction.name());
         config.setBoolean("gitblit", null, "showRemoteBranches", repository.showRemoteBranches);
         config.setBoolean("gitblit", null, "isFrozen", repository.isFrozen);
         config.setBoolean("gitblit", null, "showReadme", repository.showReadme);
         try {
            config.save();
         } catch (IOException e) {