Skip to content

Commit 75f77d0

Browse files
authored
Update services/gitdiff/gitdiff.go
1 parent d8e1e41 commit 75f77d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ func GetDiff(ctx context.Context, gitRepo *git.Repository, opts *DiffOptions, fi
11071107
cmdCtx, cmdCancel := context.WithCancel(ctx)
11081108
defer cmdCancel()
11091109

1110-
cmdDiff := git.NewCommand(ctx)
1110+
cmdDiff := git.NewCommand(cmdCtx)
11111111
objectFormat, err := gitRepo.GetObjectFormat()
11121112
if err != nil {
11131113
return nil, err

0 commit comments

Comments
 (0)