me
/
guix
Archived
1
0
Fork 0

pull: Tag commit argument with 'tag-or-commit.

For compatibility with (guix git) procedures.

* guix/scripts/pull.scm (channel-list): Also accept tag-or-commit tagged
refspec.
Maxim Cournoyer 2023-08-15 14:43:11 -04:00
parent addffd0988
commit ecab937897
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 3 additions and 2 deletions

View File

@ -166,7 +166,7 @@ Download and deploy the latest version of Guix.\n"))
(alist-delete 'repository-url result))))
(option '("commit") #t #f
(lambda (opt name arg result)
(alist-cons 'ref `(commit . ,arg) result)))
(alist-cons 'ref `(tag-or-commit . ,arg) result)))
(option '("branch") #t #f
(lambda (opt name arg result)
(alist-cons 'ref `(branch . ,arg) result)))
@ -774,7 +774,8 @@ Use '~/.config/guix/channels.scm' instead."))
(if (guix-channel? c)
(let ((url (or url (channel-url c))))
(match ref
(('commit . commit)
((or ('commit . commit)
('tag-or-commit . commit))
(channel (inherit c)
(url url) (commit commit) (branch #f)))
(('branch . branch)