mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-04 18:14:22 +02:00
Typo fix
This commit is contained in:
parent
2698321eb1
commit
691073d736
@ -490,7 +490,7 @@ func CreateOrUpdateFile(ctx context.Context, t *TemporaryUploadRepository, file
|
|||||||
|
|
||||||
var treeObjectContentReader io.Reader = file.ContentReader
|
var treeObjectContentReader io.Reader = file.ContentReader
|
||||||
var oldEntry *git.TreeEntry
|
var oldEntry *git.TreeEntry
|
||||||
// If no new content should be commited, use the file from the last commit as content
|
// If no new content should be committed, use the file from the last commit as content
|
||||||
if file.ContentReader == nil {
|
if file.ContentReader == nil {
|
||||||
lastCommit, err := t.GetLastCommit(ctx)
|
lastCommit, err := t.GetLastCommit(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user