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