scripts: pull: Teach 'channels-list' to use 'tag' git references.

* guix/scripts/pull.scm (channel-list): Add support for 'tag' references, to
honor the various possible references types as defined in the documentation of
the update-cached-checkout procedure.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Simon Tournier 2023-08-17 16:09:17 +02:00 committed by Maxim Cournoyer
parent a789dd5865
commit 5025a68c71
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -786,6 +786,7 @@ (define (environment-variable)
(let ((url (or url (channel-url c))))
(match ref
((or ('commit . commit)
('tag . commit)
('tag-or-commit . commit))
(channel (inherit c)
(url url) (commit commit) (branch #f)))