| | |
| | | import com.gitblit.wicket.panels.BooleanChoiceOption;
|
| | | import com.gitblit.wicket.panels.BooleanOption;
|
| | | import com.gitblit.wicket.panels.RepositoryNamePanel;
|
| | | import com.google.common.base.Optional;
|
| | |
|
| | | public class NewRepositoryPage extends RootSubPage {
|
| | |
|
| | |
| | | try {
|
| | |
|
| | | UserModel user = GitBlitWebSession.get().getUser();
|
| | | PersonIdent author = new PersonIdent(user.getDisplayName(), user.emailAddress);
|
| | | String email = Optional.fromNullable(user.emailAddress).or(user.username + "@" + "gitblit");
|
| | | PersonIdent author = new PersonIdent(user.getDisplayName(), email);
|
| | |
|
| | | DirCache newIndex = DirCache.newInCore();
|
| | | DirCacheBuilder indexBuilder = newIndex.builder();
|
| | |
| | | }
|
| | | }
|
| | | } finally {
|
| | | revWalk.release();
|
| | | revWalk.close();
|
| | | }
|
| | | } catch (UnsupportedEncodingException e) {
|
| | | logger().error(null, e);
|
| | | } catch (IOException e) {
|
| | | logger().error(null, e);
|
| | | } finally {
|
| | | odi.release();
|
| | | odi.close();
|
| | | db.close();
|
| | | }
|
| | | return success;
|