mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 03:26:06 +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)
|
||||
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 {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user