diffs: limit commit line context to MAX_DIFF to prevent packetOverflow errors.
This commit is contained in:
parent
dffd66bf18
commit
98ef71f157
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ def get_line_ctx(fid, request):
|
|||
retval = ln_ctx_global
|
||||
|
||||
try:
|
||||
return int(retval)
|
||||
return min(diffs.MAX_CONTEXT, int(retval))
|
||||
except Exception:
|
||||
return 3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue