summaryrefslogtreecommitdiff
path: root/guix/git.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/git.scm')
-rw-r--r--guix/git.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/git.scm b/guix/git.scm
index 1b3355109e..b7182305cf 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -364,7 +364,8 @@ definitely available in REPOSITORY, false otherwise."
(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