diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-02-20 16:52:34 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-03-09 18:55:49 +0100 |
commit | ddd455c0dd5a527f3c7e94b8b9056155facb37e6 (patch) | |
tree | cfbe60035e579de0b39428e915a30c5d91d276df /guix/derivations.scm | |
parent | ed9d7d84314d4bea1ff610420cf09f79d9d82719 (diff) |
swh: ‘lookup-origin-revision’ handles branches pointing to directories.
Fixes <https://issues.guix.gnu.org/69070>.
* guix/swh.scm (branch-target): Add clause for 'directory and 'alias.
(lookup-origin-revision): Iterate over all the visits of ORIGIN instead
of just the first one. Handle the case where ‘branch-target’ returns
something other than a release or revision.
* tests/swh.scm ("lookup-origin-revision"): New test.
Change-Id: I7f636739a719908763bca1d3e7376341dd62e816
Diffstat (limited to 'guix/derivations.scm')
0 files changed, 0 insertions, 0 deletions