@@ -72,7 +72,7 @@ func (repo *Repository) GetCompareInfo(ctx context.Context, basePath, baseBranch
72
72
73
73
compareInfo := new (CompareInfo )
74
74
75
- compareInfo .HeadCommitID , err = GetFullCommitID (repo . Ctx , repo .Path , headBranch )
75
+ compareInfo .HeadCommitID , err = GetFullCommitID (ctx , repo .Path , headBranch )
76
76
if err != nil {
77
77
compareInfo .HeadCommitID = headBranch
78
78
}
@@ -96,7 +96,7 @@ func (repo *Repository) GetCompareInfo(ctx context.Context, basePath, baseBranch
96
96
var logs []byte
97
97
logs , _ , err = NewCommand ("log" ).AddArguments (prettyLogFormat ).
98
98
AddDynamicArguments (baseCommitID + separator + headBranch ).AddArguments ("--" ).
99
- RunStdBytes (repo . Ctx , & RunOpts {Dir : repo .Path })
99
+ RunStdBytes (ctx , & RunOpts {Dir : repo .Path })
100
100
if err != nil {
101
101
return nil , err
102
102
}
@@ -109,7 +109,7 @@ func (repo *Repository) GetCompareInfo(ctx context.Context, basePath, baseBranch
109
109
}
110
110
} else {
111
111
compareInfo .Commits = []* Commit {}
112
- compareInfo .MergeBase , err = GetFullCommitID (repo . Ctx , repo .Path , remoteBranch )
112
+ compareInfo .MergeBase , err = GetFullCommitID (ctx , repo .Path , remoteBranch )
113
113
if err != nil {
114
114
compareInfo .MergeBase = remoteBranch
115
115
}
0 commit comments