Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit cc6233a

Browse files
Fix wrong source author date (#74)
* fix wrong source author date Signed-off-by: Ayman <[email protected]> * test changes Signed-off-by: Ayman <[email protected]> * clean up Signed-off-by: Ayman <[email protected]> * code clean up Signed-off-by: Ayman <[email protected]> --------- Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent ca79916 commit cc6233a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ func (j *DSGit) GetModelData(ctx *shared.Ctx, docs []interface{}) []git.CommitCr
13511351
Payload: commit,
13521352
})
13531353
gMaxUpstreamDtMtx.Lock()
1354-
if createdOn.After(gMaxUpstreamDt) {
1354+
if createdOn.After(gMaxUpstreamDt) && createdOn.Before(time.Now().UTC()) {
13551355
gMaxUpstreamDt = createdOn
13561356
}
13571357
gMaxUpstreamDtMtx.Unlock()

0 commit comments

Comments
 (0)