Add more logging around polling git repositories

This commit is contained in:
Christopher Baines 2024-05-23 09:38:24 +01:00
parent f7ada4bf1f
commit d74422c268

View file

@ -99,6 +99,9 @@
conn
'latest-channel-instances
(lambda ()
(simple-format (current-error-port)
"polling git repository ~A\n"
git-repository-id)
;; This was using update-cached-checkout, but it wants to checkout
;; refs/remotes/origin/HEAD by default, and that can fail for some reason
;; on some repositories:
@ -158,6 +161,15 @@
oid->string)))))
(branch-list repository BRANCH-REMOTE)))))
(simple-format (current-error-port)
"git repository ~A: excluded branches: ~A\n"
git-repository-id
excluded-branches)
(simple-format (current-error-port)
"git repository ~A: included branches: ~A\n"
git-repository-id
included-branches)
(with-postgresql-transaction
conn
(lambda (conn)