From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.
---
src/com/gitblit/client/GitblitManager.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/com/gitblit/client/GitblitManager.java b/src/com/gitblit/client/GitblitManager.java
index a16cfe6..dd0315f 100644
--- a/src/com/gitblit/client/GitblitManager.java
+++ b/src/com/gitblit/client/GitblitManager.java
@@ -400,7 +400,7 @@
}
private void loadFeedCache(GitblitRegistration reg) {
- File feedCache = new File(configFile.getParentFile(), StringUtils.getSHA1(reg.url)
+ File feedCache = new File(configFile.getParentFile(), StringUtils.getSHA1(reg.toString())
+ ".cache");
if (!feedCache.exists()) {
// no cache for this registration
@@ -429,8 +429,8 @@
private void writeFeedCache(GitblitRegistration reg) {
try {
- File feedCache = new File(configFile.getParentFile(), StringUtils.getSHA1(reg.url)
- + ".cache");
+ File feedCache = new File(configFile.getParentFile(), StringUtils.getSHA1(reg
+ .toString()) + ".cache");
FileWriter writer = new FileWriter(feedCache);
for (FeedModel feed : reg.feeds) {
writer.append(MessageFormat.format("{0}={1,date,yyyy-MM-dd'T'HH:mm:ss}\n",
--
Gitblit v1.9.1