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:
parent
be5bec47f7
commit
94f3831e5b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue