summary refs log tree commit diff
path: root/tests/gexp.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-02-20 16:52:34 +0100
committerLudovic Courtès <ludo@gnu.org>2024-03-09 18:55:49 +0100
commitddd455c0dd5a527f3c7e94b8b9056155facb37e6 (patch)
treecfbe60035e579de0b39428e915a30c5d91d276df /tests/gexp.scm
parented9d7d84314d4bea1ff610420cf09f79d9d82719 (diff)
downloadguix-ddd455c0dd5a527f3c7e94b8b9056155facb37e6.tar.gz
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 'tests/gexp.scm')
0 files changed, 0 insertions, 0 deletions