Skip to content

Commit 089b1b0

Browse files
authored
Merge branch 'release/v1.25' into backport-35864-v1.25
2 parents 3f74da4 + 154d752 commit 089b1b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routers/api/v1/repo/file.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ func ReqChangeRepoFileOptionsAndCheck(ctx *context.APIContext) {
369369
},
370370
Signoff: commonOpts.Signoff,
371371
}
372-
if commonOpts.Dates.Author.IsZero() {
373-
commonOpts.Dates.Author = time.Now()
372+
if changeFileOpts.Dates.Author.IsZero() {
373+
changeFileOpts.Dates.Author = time.Now()
374374
}
375-
if commonOpts.Dates.Committer.IsZero() {
376-
commonOpts.Dates.Committer = time.Now()
375+
if changeFileOpts.Dates.Committer.IsZero() {
376+
changeFileOpts.Dates.Committer = time.Now()
377377
}
378378
ctx.Data["__APIChangeRepoFilesOptions"] = changeFileOpts
379379
}

0 commit comments

Comments
 (0)