diff options
author | James Moger <james.moger@gitblit.com> | 2012-08-17 15:17:16 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-08-17 15:17:16 -0400 |
commit | fee0600989ccc271e3f3b44a06599682698c425f (patch) | |
tree | 9593d158915bbb14ffb1c46c9b94943f811e302a /tests/com | |
parent | eb741abbb84437a08004bac2e219513400d9e56c (diff) | |
download | gitblit-fee0600989ccc271e3f3b44a06599682698c425f.tar.gz gitblit-fee0600989ccc271e3f3b44a06599682698c425f.zip |
Optionally cache repository list for improved performance
Diffstat (limited to 'tests/com')
-rw-r--r-- | tests/com/gitblit/tests/RepositoryModelTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/com/gitblit/tests/RepositoryModelTest.java b/tests/com/gitblit/tests/RepositoryModelTest.java index d49cb434..1fe3fbd0 100644 --- a/tests/com/gitblit/tests/RepositoryModelTest.java +++ b/tests/com/gitblit/tests/RepositoryModelTest.java @@ -29,7 +29,6 @@ import org.junit.Test; import com.gitblit.Constants; import com.gitblit.GitBlit; import com.gitblit.models.RepositoryModel; -import com.gitblit.utils.JGitUtils; public class RepositoryModelTest { @@ -49,7 +48,7 @@ public class RepositoryModelTest { @Before public void initializeConfiguration() throws Exception{ Repository r = GitBlitSuite.getHelloworldRepository(); - StoredConfig config = JGitUtils.readConfig(r); + StoredConfig config = r.getConfig(); config.unsetSection(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS); config.setString(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS, "commitMessageRegEx", "\\d"); @@ -61,7 +60,7 @@ public class RepositoryModelTest { @After public void teardownConfiguration() throws Exception { Repository r = GitBlitSuite.getHelloworldRepository(); - StoredConfig config = JGitUtils.readConfig(r); + StoredConfig config = r.getConfig(); config.unsetSection(Constants.CONFIG_GITBLIT, Constants.CONFIG_CUSTOM_FIELDS); config.save(); |