|
@ -249,7 +249,7 @@ func (t *TemporaryUploadRepository) GetLastCommitByRef(ref string) (string, erro |
|
|
|
|
|
|
|
|
// CommitTree creates a commit from a given tree for the user with provided message
|
|
|
// CommitTree creates a commit from a given tree for the user with provided message
|
|
|
func (t *TemporaryUploadRepository) CommitTree(author, committer *models.User, treeHash string, message string) (string, error) { |
|
|
func (t *TemporaryUploadRepository) CommitTree(author, committer *models.User, treeHash string, message string) (string, error) { |
|
|
commitTimeStr := time.Now().Format(time.UnixDate) |
|
|
|
|
|
|
|
|
commitTimeStr := time.Now().Format(time.RFC3339) |
|
|
authorSig := author.NewGitSig() |
|
|
authorSig := author.NewGitSig() |
|
|
committerSig := committer.NewGitSig() |
|
|
committerSig := committer.NewGitSig() |
|
|
|
|
|
|
|
|