From 4d9c8e8d3e84ee119322ada18e8002acced44959 Mon Sep 17 00:00:00 2001 From: Tomofumi Tanaka Date: Fri, 26 Jul 2013 00:25:13 +0900 Subject: [PATCH] Initial commiter should be repository creator like wiki repository. Now it seems that set $HOME/.gitconfig user.name,user.email or machine username and username@hostname. --- src/main/scala/app/CreateRepositoryController.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/app/CreateRepositoryController.scala b/src/main/scala/app/CreateRepositoryController.scala index a622c8868..04cc71917 100644 --- a/src/main/scala/app/CreateRepositoryController.scala +++ b/src/main/scala/app/CreateRepositoryController.scala @@ -86,7 +86,7 @@ trait CreateRepositoryControllerBase extends ControllerBase { val git = Git.open(tmpdir) git.add.addFilepattern("README.md").call - git.commit.setMessage("Initial commit").call + git.commit.setCommitter(loginAccount.userName, loginAccount.mailAddress).setMessage("Initial commit").call git.push.call } finally { @@ -120,4 +120,4 @@ trait CreateRepositoryControllerBase extends ControllerBase { } } -} \ No newline at end of file +}