summaryrefslogtreecommitdiff
path: root/guix/git.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-09-09 12:22:14 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-09-09 12:22:14 +0200
commit94ca5b4357af8f8921f0cb0873a7cf316f13aa69 (patch)
tree6ef30120737f26f298f7f17d86597b0b729517e0 /guix/git.scm
parent6750c114e3e988249f4069d0180316c6d0192350 (diff)
parentdb61bdd7f52270a35bd0a3a88650d98276dab20b (diff)
Merge branch 'master' into emacs-team
Diffstat (limited to 'guix/git.scm')
-rw-r--r--guix/git.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/git.scm b/guix/git.scm
index dbc3b7caa7..1cb87a4560 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -360,6 +360,11 @@ dynamic extent of EXP."
(define (reference-available? repository ref)
"Return true if REF, a reference such as '(commit . \"cabba9e\"), is
definitely available in REPOSITORY, false otherwise."
+ ;; Note: this must not rely on 'resolve-reference', as that procedure always
+ ;; resolves the references for branch names such as master. The semantic we
+ ;; want here is that unless the reference is exact (e.g. a commit), the
+ ;; reference should not be considered available, as it could have changed on
+ ;; the remote.
(match ref
((or ('commit . commit)
('tag-or-commit . (? commit-id? commit)))