Skip to content

Commit 04ca695

Browse files
authored
Update services/pull/compare.go
Signed-off-by: wxiaoguang <[email protected]>
1 parent 2e77047 commit 04ca695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pull/compare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func GetCompareInfo(ctx context.Context, baseRepo, headRepo *repo_model.Reposito
3636
// Add a temporary remote
3737
tmpRemote = strconv.FormatInt(time.Now().UnixNano(), 10)
3838
if err = gitrepo.GitRemoteAdd(ctx, headRepo, tmpRemote, baseRepo.RepoPath()); err != nil {
39-
return nil, fmt.Errorf("AddRemote: %w", err)
39+
return nil, fmt.Errorf("GitRemoteAdd: %w", err)
4040
}
4141
defer func() {
4242
if err := gitrepo.GitRemoteRemove(ctx, headRepo, tmpRemote); err != nil {

0 commit comments

Comments
 (0)