summaryrefslogtreecommitdiffstats
path: root/services/gitdiff/gitdiff.go
diff options
context:
space:
mode:
authorOtto <otto@codeberg.org>2024-11-04 11:40:07 +0100
committerOtto <otto@codeberg.org>2024-11-04 11:40:07 +0100
commit1418ac176de9f718419672af870071ce2469a071 (patch)
tree24d314ae1961b54383358fd6d91f3124c425d597 /services/gitdiff/gitdiff.go
parentMerge pull request '[PORT] Fix a number of typescript issues (gitea#32308)' (... (diff)
parent[PORT] Fix git error handling (gitea#32401) (diff)
downloadforgejo-1418ac176de9f718419672af870071ce2469a071.tar.xz
forgejo-1418ac176de9f718419672af870071ce2469a071.zip
Merge pull request '[PORT] Fix git error handling (gitea#32401)' (#5794) from gusted/forgejo-port-32401 into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5794 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Otto <otto@codeberg.org>
Diffstat (limited to 'services/gitdiff/gitdiff.go')
-rw-r--r--services/gitdiff/gitdiff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index 8f376a1045..91b1f135c4 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -1159,7 +1159,7 @@ func GetDiff(ctx context.Context, gitRepo *git.Repository, opts *DiffOptions, fi
Dir: repoPath,
Stdout: writer,
Stderr: stderr,
- }); err != nil {
+ }); err != nil && !git.IsErrCanceledOrKilled(err) {
log.Error("error during GetDiff(git diff dir: %s): %v, stderr: %s", repoPath, err, stderr.String())
}