mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
git: <git-checkout> allows tags in its 'commit' field.
Fixes <https://bugs.gnu.org/36371>. Reported by Tobias Geerinckx-Rice <me@tobias.gr>. * guix/git.scm (git-checkout-compiler): Pass 'tag-or-commit' to 'latest-repository-commit*'. * doc/guix.texi (Package Transformation Options): Update '--with-commit' documentation accordingly. * tests/guix-build-branch.sh: Add test.
This commit is contained in:
parent
c4c2449fea
commit
177fecb57c
3 changed files with 10 additions and 4 deletions
|
@ -330,7 +330,7 @@ Log progress and checkout info to LOG-PORT."
|
|||
git-checkout?
|
||||
(url git-checkout-url)
|
||||
(branch git-checkout-branch (default "master"))
|
||||
(commit git-checkout-commit (default #f))
|
||||
(commit git-checkout-commit (default #f)) ;#f | tag | commit
|
||||
(recursive? git-checkout-recursive? (default #f)))
|
||||
|
||||
(define* (latest-repository-commit* url #:key ref recursive? log-port)
|
||||
|
@ -369,7 +369,7 @@ Log progress and checkout info to LOG-PORT."
|
|||
(($ <git-checkout> url branch commit recursive?)
|
||||
(latest-repository-commit* url
|
||||
#:ref (if commit
|
||||
`(commit . ,commit)
|
||||
`(tag-or-commit . ,commit)
|
||||
`(branch . ,branch))
|
||||
#:recursive? recursive?
|
||||
#:log-port (current-error-port)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue