We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d7496 commit 61e5cc1Copy full SHA for 61e5cc1
routers/api/v1/repo/file.go
@@ -370,11 +370,11 @@ func ReqChangeRepoFileOptionsAndCheck(ctx *context.APIContext) {
370
},
371
Signoff: commonOpts.Signoff,
372
}
373
- if commonOpts.Dates.Author.IsZero() {
374
- commonOpts.Dates.Author = time.Now()
+ if changeFileOpts.Dates.Author.IsZero() {
+ changeFileOpts.Dates.Author = time.Now()
375
376
- if commonOpts.Dates.Committer.IsZero() {
377
- commonOpts.Dates.Committer = time.Now()
+ if changeFileOpts.Dates.Committer.IsZero() {
+ changeFileOpts.Dates.Committer = time.Now()
378
379
ctx.Data["__APIChangeRepoFilesOptions"] = changeFileOpts
380
0 commit comments