git: 'update-cached-checkout' returns the commit relation.
authorLudovic Courtès <ludo@gnu.org>
Wed, 20 May 2020 15:57:54 +0000 (17:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 24 May 2020 22:00:28 +0000 (00:00 +0200)
commit8d1d56578aa95118650ed2197bfb7fac40f4218a
treed2d27f204da98f3f4fc43a757ca910e724acab81
parent9b049de84ed101e2c0a5d071e76f424b3bc46bd9
git: 'update-cached-checkout' returns the commit relation.

* guix/git.scm (update-cached-checkout): Add #:starting-commit
parameter.  Call 'commit-relation' when #:starting-commit is true.
Always return the relation or #f as the third value.
(latest-repository-commit): Adjust accordingly.
* guix/import/opam.scm (get-opam-repository): Likewise.
* tests/channels.scm ("latest-channel-instances includes channel dependencies")
("latest-channel-instances excludes duplicate channel dependencies"):
Update mock of 'update-cached-checkout' accordingly.
guix/channels.scm
guix/git.scm
guix/import/opam.scm
tests/channels.scm