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 a0f492d commit 49f4c4cCopy full SHA for 49f4c4c
routers/api/v1/repo/file.go
@@ -370,12 +370,14 @@ 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() {
375
+ changeFileOpts.Dates.Author = time.Now()
376
- if commonOpts.Dates.Committer.IsZero() {
377
- commonOpts.Dates.Committer = time.Now()
+ if changeFileOpts.Dates.Committer.IsZero() {
378
+ changeFileOpts.Dates.Committer = time.Now()
379
380
381
ctx.Data["__APIChangeRepoFilesOptions"] = changeFileOpts
382
383
0 commit comments