mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-06 23:52:18 +01:00
Merge pull request #52 from tanacasino/fix/set-initial-commiter
Initial commiter should be repository creator
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