lotherk
3c6b249810
giteabot backport / giteabot (push) Skipped
release-nightly-snapcraft / build-and-publish (ubuntu-24.04) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (ubuntu-24.04-arm) (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
feat(got): check branch and tag existence with got
...
IsBranchExist and IsTagExist now ask got.RefExists instead of git's cat-file
batch. got's exit status is useless here: `got ref -l <unknown>` exits 0 with
no output, and an empty repository reports "HEAD: refs/heads/main" for a branch
that does not exist yet. The wrapper therefore parses the "<name>: <value>"
line and follows symbolic entries with a bounded depth.
IsReferenceExist/IsObjectExist keep the cat-file batch: they answer "is this
object present" for bare and short commit IDs, which got ref cannot, and
`got cat` resolves unknown arguments as paths in HEAD's tree, so it would
report file names as existing objects. That gap is documented, not silent.
Verified: go test ./modules/got ./modules/git (ref_test.go covers both ref
behaviours, the empty repository, and the enclosing-repository escape;
ref_got_test.go covers true/false branches and tags plus a missing got binary).
Full go test ./modules/... ./services/... ./models/... ./routers/... and
make -C cgi check pass.
Assisted-by: splinter:claude-opus-4
2026-11-22 18:02:34 +00:00
..
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2023-02-04 10:30:43 +08:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 15:55:23 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-08-07 02:44:55 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 15:23:05 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2025-05-09 16:17:08 +00:00
2026-07-20 16:07:38 +00:00
2026-11-22 12:13:09 +00:00
2026-09-29 11:56:51 +00:00
2026-11-22 12:13:09 +00:00
2026-07-20 16:07:38 +00:00
2026-11-22 12:13:09 +00:00
2026-08-09 10:25:06 +00:00
2026-11-22 12:13:09 +00:00
2026-07-28 19:12:53 +08:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-09-06 11:27:04 +02:00
2026-11-22 12:13:09 +00:00
2026-07-15 17:30:01 +00:00
2026-07-28 17:04:22 +00:00
2026-10-04 14:00:15 +00:00
2026-11-22 12:13:09 +00:00
2026-07-17 18:44:31 +08:00
2026-09-19 12:41:41 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-07-20 16:07:38 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-08-21 07:52:23 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 15:23:05 +00:00
2026-11-22 12:13:09 +00:00
2026-08-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-09-19 12:41:41 +00:00
2024-01-19 17:05:02 +01:00
2026-09-19 12:41:41 +00:00
2026-11-22 12:13:09 +00:00
2026-04-14 12:03:26 +00:00
2026-05-13 09:00:41 +02:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 18:02:34 +00:00
2026-08-28 14:17:01 -07:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2025-12-25 19:26:23 -08:00
2026-11-22 15:55:23 +00:00
2026-11-22 18:02:34 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-07-20 18:03:28 +00:00
2026-11-22 12:13:09 +00:00
2026-07-28 17:04:22 +00:00
2026-11-22 12:13:09 +00:00
2026-07-28 17:04:22 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 18:02:34 +00:00
2026-08-22 08:59:37 +00:00
2026-11-22 12:13:09 +00:00
2026-09-29 14:43:36 +02:00
2026-11-22 12:13:09 +00:00
2026-07-28 17:04:22 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 15:19:23 +00:00
2024-02-09 11:02:53 +08:00
2026-11-22 12:13:09 +00:00
2025-03-31 01:53:48 -04:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-11-22 12:13:09 +00:00
2026-05-07 16:19:45 +02:00
2026-11-22 12:13:09 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-07-15 17:30:01 +00:00
2026-11-22 12:13:09 +00:00
2026-05-13 09:00:41 +02:00
2026-07-15 17:30:01 +00:00
2026-04-14 12:03:26 +00:00
2026-11-22 12:13:09 +00:00
2026-04-14 12:03:26 +00:00
2026-11-22 12:13:09 +00:00
2026-07-15 17:30:01 +00:00
2026-11-22 12:13:09 +00:00
2026-07-28 17:04:22 +00:00
2026-11-22 12:13:09 +00:00
2025-07-30 07:08:59 +00:00
2026-11-22 12:13:09 +00:00