mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 20:15:59 +01:00
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.
This commit is contained in:
@@ -86,7 +86,7 @@ trait CreateRepositoryControllerBase extends ControllerBase {
|
|||||||
|
|
||||||
val git = Git.open(tmpdir)
|
val git = Git.open(tmpdir)
|
||||||
git.add.addFilepattern("README.md").call
|
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
|
git.push.call
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user