aboutsummaryrefslogtreecommitdiffstats
path: root/services/gitdiff/gitdiff.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-03-18 02:59:34 +0800
committerGitHub <noreply@github.com>2025-03-17 11:59:34 -0700
commit9d7c02f9f75d2e7b2131831ed37184f9fe386efc (patch)
treefe37ddac6ae4a56c46f0fa5e59d24fdfaeebadbd /services/gitdiff/gitdiff.go
parentfdaf1cca65e118562b3cc2eb9e7c077b28f77213 (diff)
downloadgitea-9d7c02f9f75d2e7b2131831ed37184f9fe386efc.tar.gz
gitea-9d7c02f9f75d2e7b2131831ed37184f9fe386efc.zip
Try to figure out attribute checker problem (#33901)
For #31600
Diffstat (limited to 'services/gitdiff/gitdiff.go')
-rw-r--r--services/gitdiff/gitdiff.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index 7208e1fb96..b9781cf8d0 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -1253,6 +1253,8 @@ func GetDiffForRender(ctx context.Context, gitRepo *git.Repository, opts *DiffOp
if language.Has() {
diffFile.Language = language.Value()
}
+ } else {
+ checker = nil // CheckPath fails, it's not impossible to "check" anymore
}
}