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.
2 parents 3f74da4 + 154d752 commit 089b1b0Copy full SHA for 089b1b0
routers/api/v1/repo/file.go
@@ -369,11 +369,11 @@ func ReqChangeRepoFileOptionsAndCheck(ctx *context.APIContext) {
369
},
370
Signoff: commonOpts.Signoff,
371
}
372
- if commonOpts.Dates.Author.IsZero() {
373
- commonOpts.Dates.Author = time.Now()
+ if changeFileOpts.Dates.Author.IsZero() {
+ changeFileOpts.Dates.Author = time.Now()
374
375
- if commonOpts.Dates.Committer.IsZero() {
376
- commonOpts.Dates.Committer = time.Now()
+ if changeFileOpts.Dates.Committer.IsZero() {
+ changeFileOpts.Dates.Committer = time.Now()
377
378
ctx.Data["__APIChangeRepoFilesOptions"] = changeFileOpts
379
0 commit comments