zeripath fe09ee564d
Prevent context deadline error propagation in GetCommitsInfo (#20346)
* Prevent context deadline error propagation in GetCommitsInfo

Although `WalkGitLog` tries to test for `context.DeadlineExceededErr`
there is a small chance that the error will propagate to the reader
before it is recognised. This will cause the error to propagate up to
`renderDirectoryFiles` and cause a http status 500.

Here we check that the error passed is a `DeadlineExceededErr` via error.Is

Fix #20329

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-14 00:24:29 +02:00
..
2022-05-06 10:12:30 +01:00
2022-07-12 23:32:37 +02:00
2022-06-27 15:58:46 -05:00
2022-07-12 23:32:37 +02:00
2022-01-20 18:46:10 +01:00
2020-10-02 23:37:53 -04:00
2022-01-19 19:31:39 -05:00
2022-01-20 18:46:10 +01:00
2022-07-12 23:32:37 +02:00
2022-01-20 18:46:10 +01:00
2022-06-25 19:06:01 +02:00
2022-06-26 22:19:22 +08:00
2021-12-20 04:41:31 +00:00
2020-04-05 07:20:50 +01:00
2022-04-25 13:55:12 +08:00
2022-07-12 23:32:37 +02:00