[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: git: 'reference-available?' recognizes 'tag-or-commit'.
From: |
guix-commits |
Subject: |
06/07: git: 'reference-available?' recognizes 'tag-or-commit'. |
Date: |
Sat, 18 Sep 2021 17:09:34 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit dce2cf311bc12dee4560329f53ccb53470d5793e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 10 15:53:32 2021 +0200
git: 'reference-available?' recognizes 'tag-or-commit'.
* guix/git.scm (reference-available?): Handle 'tag-or-commit' with a
40-digit hex string.
---
guix/git.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/guix/git.scm b/guix/git.scm
index 719af95..dc2ca1b 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -36,7 +36,7 @@
#:use-module (guix sets)
#:use-module ((guix diagnostics) #:select (leave warning))
#:use-module (guix progress)
- #:autoload (guix swh) (swh-download)
+ #:autoload (guix swh) (swh-download commit-id?)
#:use-module (rnrs bytevectors)
#:use-module (ice-9 format)
#:use-module (ice-9 match)
@@ -342,7 +342,8 @@ dynamic extent of EXP."
"Return true if REF, a reference such as '(commit . \"cabba9e\"), is
definitely available in REPOSITORY, false otherwise."
(match ref
- (('commit . commit)
+ ((or ('commit . commit)
+ ('tag-or-commit . (? commit-id? commit)))
(let ((len (string-length commit))
(oid (string->oid commit)))
(false-if-git-not-found
- branch master updated (337b7f5 -> eb6593c), guix-commits, 2021/09/18
- 01/07: gnu: guix: Update to 808f9ff., guix-commits, 2021/09/18
- 04/07: swh: Support downloads of bare Git repositories., guix-commits, 2021/09/18
- 07/07: Update NEWS., guix-commits, 2021/09/18
- 06/07: git: 'reference-available?' recognizes 'tag-or-commit'.,
guix-commits <=
- 05/07: git: 'update-cached-checkout' can fall back to SWH when cloning., guix-commits, 2021/09/18
- 03/07: import: go: Match "go-import" meta tags anywhere., guix-commits, 2021/09/18
- 02/07: import: go: Improve handling of modules in VCS subdirectories., guix-commits, 2021/09/18