git: Restore 'false-if-git-not-found' in 'reference-available?'.

* guix/git/scm (reference-available?): Add 'false-if-git-not-found' for the
case 'commit.
This commit is contained in:
Simon Tournier 2023-09-25 12:00:18 +02:00
parent be5bec47f7
commit 94f3831e5b
No known key found for this signature in database
GPG key ID: 92F1D22C608EE7E5

View file

@ -364,7 +364,8 @@ (define (reference-available? repository ref)
(match ref
(('commit . (? commit-id? commit))
(let ((oid (string->oid commit)))
(->bool (commit-lookup repository oid))))
(false-if-git-not-found
(->bool (commit-lookup repository oid)))))
((or ('tag . str)
('tag-or-commit . str))
(false-if-git-not-found