import com.gitblit.wicket.panels.BooleanChoiceOption;\r
import com.gitblit.wicket.panels.BooleanOption;\r
import com.gitblit.wicket.panels.RepositoryNamePanel;\r
+import com.google.common.base.Optional;\r
\r
public class NewRepositoryPage extends RootSubPage {\r
\r
try {\r
\r
UserModel user = GitBlitWebSession.get().getUser();\r
- PersonIdent author = new PersonIdent(user.getDisplayName(), user.emailAddress);\r
+ String email = Optional.fromNullable(user.emailAddress).or(user.username + "@" + "gitblit");\r
+ PersonIdent author = new PersonIdent(user.getDisplayName(), email);\r
\r
DirCache newIndex = DirCache.newInCore();\r
DirCacheBuilder indexBuilder = newIndex.builder();\r