git: 'update-cached-checkout' gracefully handles missing starting commit.
authorLudovic Courtès <ludo@gnu.org>
Sun, 7 Jun 2020 20:14:56 +0000 (22:14 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 7 Jun 2020 21:10:46 +0000 (23:10 +0200)
commit1fd7de45f218ce572a3fe87764ad15927e3dbdc4
tree403fdff74a8d91fec1b595e203af7b294ff23d4f
parent715f589ea39146fa66cce5470c0368073c471540
git: 'update-cached-checkout' gracefully handles missing starting commit.

Fixes <https://bugs.gnu.org/41604>
Reported by John Soo <jsoo1@asu.edu> and zimoun <zimon.toutoune@gmail.com>.

* guix/git.scm (false-if-git-not-found): New macro.
(reference-available?): Use it.
(update-cached-checkout): Use it when looking up STARTING-COMMIT.
Set RELATION to 'unrelated when OLD is #false.
guix/git.scm