From 8051a29d8b3826772e5be1851eb72cd52ab5080c Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 13 Jan 2012 08:04:06 -0500 Subject: Fixed upgrade bug in user service (issue 41) --- src/com/gitblit/Constants.java | 4 ++-- src/com/gitblit/GitblitUserService.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com/gitblit') diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java index a28a871a..cedda6f4 100644 --- a/src/com/gitblit/Constants.java +++ b/src/com/gitblit/Constants.java @@ -29,11 +29,11 @@ public class Constants { // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. - public static final String VERSION = "0.9.0-SNAPSHOT"; + public static final String VERSION = "0.8.2"; // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. - public static final String VERSION_DATE = "PENDING"; + public static final String VERSION_DATE = "2012-01-13"; // The build script extracts this exact line so be careful editing it // and only use A-Z a-z 0-9 .-_ in the string. diff --git a/src/com/gitblit/GitblitUserService.java b/src/com/gitblit/GitblitUserService.java index eddc8a3d..7462af08 100644 --- a/src/com/gitblit/GitblitUserService.java +++ b/src/com/gitblit/GitblitUserService.java @@ -95,8 +95,8 @@ public class GitblitUserService implements IUserService { logger.info(MessageFormat.format("Automatically creating {0} based on {1}", usersConfig.getAbsolutePath(), realmFile.getAbsolutePath())); ConfigUserService configService = new ConfigUserService(usersConfig); - for (String username : serviceImpl.getAllUsernames()) { - UserModel userModel = serviceImpl.getUserModel(username); + for (String username : service.getAllUsernames()) { + UserModel userModel = service.getUserModel(username); configService.updateUserModel(userModel); } } -- cgit v1.2.3