Paul Martin
2016-04-27 c2188a840bc4153ae92112b04b2e06a90d3944aa
src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
@@ -59,6 +59,7 @@
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 {
@@ -243,7 +244,8 @@
      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();
@@ -357,14 +359,14 @@
               }
            }
         } 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;