Zhaowei Gu
de28726658
test: fix unit tests on git older than 2.42 ( #40557 )
...
Gitea supports git 2.34 and newer, but with git 2.34.1 `go test
./modules/git/` panics in `TestReadingBlameOutput/sha256` (nil pointer
dereference), which aborts the rest of the package, and `services/pull`
fails its `*-MergeTree` cases with `exit status 129`. These tests use
sha256 repositories, `cat-file --batch-command` and `merge-tree
--write-tree`, which production code only uses when `DefaultFeatures()`
says git is new enough (2.42, 2.36 and 2.40).
Those cases now skip on the same `DefaultFeatures()` flags, as the
check-attr tests in `modules/git/attribute` already do. With git 2.34.1
both packages failed before; now they pass with those cases skipped, and
`make test-backend` passes as a whole. With git 2.42.0, 2.43.0 and
2.56.1 nothing is skipped; with 2.41.3 only the sha256 cases are.
Related: https://github.com/go-gitea/gitea/pull/39565
Assisted-by: Hermes Agent:claude-opus-5-5
2026-11-27 12:53:33 +00:00
..
2026-10-24 13:48:19 +00:00
2026-08-22 08:59:37 +00:00
2026-11-27 04:42:48 +00:00
2026-11-08 18:38:23 +00:00
2023-02-04 10:30:43 +08:00
2026-08-26 17:24:07 +02:00
2026-11-12 06:19:10 +00:00
2026-07-19 07:32:00 +00:00
2026-10-24 13:48:19 +00:00
2026-08-11 16:33:15 +00:00
2026-08-11 16:33:15 +00:00
2026-11-27 12:53:33 +00:00
2026-10-20 11:03:34 -07:00
2026-08-07 02:44:55 +00:00
2026-10-03 10:04:24 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-21 12:18:00 +00:00
2026-07-28 17:04:22 +00:00
2026-11-27 12:53:33 +00:00
2026-07-23 01:22:26 +00:00
2026-07-23 01:22:26 +00:00
2025-05-09 16:17:08 +00:00
2026-11-25 10:39:43 +00:00
2026-11-25 10:39:43 +00:00
2026-08-05 00:17:07 +08:00
2026-10-24 13:48:19 +00:00
2026-07-20 16:07:38 +00:00
2026-11-20 02:58:39 +00:00
2026-10-03 10:04:24 +00:00
2026-11-27 04:42:48 +00:00
2026-11-27 04:42:48 +00:00
2026-07-15 17:30:01 +00:00
2026-11-27 12:53:33 +00:00
2026-10-04 13:40:27 +00:00
2026-10-04 13:40:27 +00:00
2026-07-17 18:44:31 +08:00
2026-11-27 12:53:33 +00:00
2026-11-27 04:42:48 +00:00
2026-11-09 17:59:52 +00:00
2026-10-20 21:00:32 +00:00
2026-07-20 16:07:38 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2026-10-22 01:27:02 +00:00
2026-11-09 12:42:40 +00:00
2026-10-20 22:10:04 +00:00
2026-11-12 06:19:10 +00:00
2026-09-15 10:59:34 +02:00
2026-10-16 08:19:57 +00:00
2026-11-09 17:59:52 +00:00
2026-11-09 17:59:52 +00:00
2026-07-20 16:07:38 +00:00
2026-11-17 02:47:17 +00:00
2026-07-28 17:04:22 +00:00
2026-08-25 12:02:31 +00:00
2026-08-29 19:54:07 +00:00
2026-11-13 07:24:37 +00:00
2026-11-13 07:24:37 +00:00
2026-11-11 17:07:57 +00:00
2026-08-21 07:52:23 +00:00
2026-11-06 11:59:49 +00:00
2026-08-25 12:02:31 +00:00
2026-10-03 10:04:24 +00:00
2026-10-04 16:26:14 +08:00
2026-10-03 10:04:24 +00:00
2026-07-23 01:22:26 +00:00
2026-11-27 12:53:33 +00:00
2026-11-12 06:19:10 +00:00
2026-07-20 16:07:38 +00:00
2026-09-29 11:56:51 +00:00
2026-08-05 00:17:07 +08:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-10-14 20:54:33 +02:00
2026-11-25 00:18:50 +00:00
2026-11-09 17:59:52 +00:00
2026-08-28 14:17:01 -07:00
2026-11-09 17:59:52 +00:00
2026-09-15 10:59:34 +02:00
2026-10-04 16:26:14 +08:00
2026-10-20 21:00:32 +00:00
2026-10-03 10:04:24 +00:00
2026-10-03 10:04:24 +00:00
2026-10-24 13:48:19 +00:00
2025-12-25 19:26:23 -08:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-08-25 12:02:31 +00:00
2026-11-09 17:59:52 +00:00
2026-11-12 06:19:10 +00:00
2026-09-19 13:04:53 +00:00
2026-09-19 13:04:53 +00:00
2026-07-28 17:04:22 +00:00
2026-11-09 12:42:40 +00:00
2026-10-01 15:51:07 +00:00
2026-10-01 15:51:07 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-09-29 14:43:36 +02:00
2026-11-27 04:42:48 +00:00
2026-11-26 10:50:01 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-07-23 01:22:26 +00:00
2026-07-21 12:18:00 +00:00
2026-11-09 17:59:52 +00:00
2026-05-07 16:19:45 +02:00
2026-08-22 08:59:37 +00:00
2026-10-03 10:04:24 +00:00
2026-10-24 13:48:19 +00:00
2026-04-14 12:03:26 +00:00
2026-04-14 12:03:26 +00:00
2026-10-04 23:50:46 +00:00
2026-10-20 21:00:32 +00:00
2026-11-12 06:19:10 +00:00
2025-07-30 07:08:59 +00:00
2026-08-25 12:02:31 +00:00