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-06-20 12:02:49 +02:00
2022-05-06 10:12:30 +01:00
2022-04-14 21:58:21 +08:00
2022-05-02 23:22:45 +08:00
2022-05-02 23:22:45 +08:00
2022-06-20 12:02:49 +02:00
2022-05-15 20:43:27 +02:00
2022-07-12 23:32:37 +02:00
2022-03-31 17:20:39 +08:00
2022-06-27 15:58:46 -05:00
2022-06-20 12:02:49 +02:00
2022-06-16 11:33:23 +08:00
2022-07-12 23:32:37 +02:00
2022-01-20 18:46:10 +01:00
2022-06-20 12:02:49 +02:00
2022-01-26 12:10:10 +08:00
2022-07-14 00:24:29 +02:00
2022-06-20 12:02:49 +02:00
2022-06-20 12:02:49 +02:00
2020-10-02 23:37:53 -04:00
2022-06-20 12:02:49 +02:00
2022-07-13 09:07:16 +08:00
2022-05-09 17:54:51 +02:00
2022-01-19 19:31:39 -05:00
2022-07-01 07:48:25 +08:00
2022-04-01 16:47:50 +08:00
2022-06-12 23:51:54 +08:00
2022-06-18 10:33:13 +08:00
2022-07-07 17:46:49 +02:00
2022-01-20 18:46:10 +01:00
2022-07-01 07:48:25 +08:00
2022-07-08 20:45:12 +01:00
2022-07-12 23:32:37 +02:00
2022-07-08 20:45:12 +01:00
2022-05-02 23:22:45 +08:00
2022-06-20 12:02:49 +02:00
2022-04-03 17:46:48 +08:00
2021-06-07 07:27:09 +02:00
2021-09-22 13:38:34 +08:00
2022-06-24 12:49:47 +02:00
2022-06-20 12:02:49 +02:00
2021-08-19 16:41:20 -04:00
2022-05-02 23:22:45 +08:00
2022-06-20 12:02:49 +02:00
2021-09-22 13:38:34 +08:00
2022-06-20 12:02:49 +02:00
2022-06-10 13:39:53 +08:00
2022-06-20 14:38:58 +02:00
2022-02-04 18:03:15 +01:00
2022-01-20 18:46:10 +01:00
2022-07-13 13:33:31 +08:00
2022-06-25 19:06:01 +02:00
2022-07-10 14:50:26 +08:00
2022-06-20 12:02:49 +02:00
2022-06-20 12:02:49 +02:00
2022-05-02 23:22:45 +08:00
2022-04-25 20:03:01 +02:00
2022-07-10 19:49:13 +01:00
2022-05-11 12:09:36 +02:00
2022-06-26 22:19:22 +08:00
2022-07-04 12:17:09 +02:00
2022-05-28 18:10:14 +03:00
2022-01-20 18:46:10 +01:00
2021-12-20 04:41:31 +00:00
2021-12-23 16:27:33 +00:00
2020-04-05 07:20:50 +01:00
2022-06-20 12:02:49 +02:00
2022-04-25 13:55:12 +08:00
2022-07-12 23:32:37 +02:00