Skip to content

Commit 88cba3e

Browse files
committed
Add a source for a particular git commit.
1 parent d5537ac commit 88cba3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

upstream-git.lisp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
(defclass branched-git-source (tagged-mixin git-source)
2020
((tag-data :reader branch-name :reader tarball-target)))
2121

22+
(defclass git-at-commit-source (tagged-git-source)
23+
((tag-data :reader commit :reader tarball-target)))
24+
2225
(defmethod checkout-subcommand-arguments ((source branched-git-source))
2326
(append (call-next-method) (list "--branch" (branch-name source))))
2427

@@ -56,7 +59,9 @@
5659
(:method ((source branched-git-source))
5760
(format nil "refs/heads/~A" (tarball-target source)))
5861
(:method ((source tagged-git-source))
59-
(format nil "refs/tags/~A" (tarball-target source))))
62+
(format nil "refs/tags/~A" (tarball-target source)))
63+
(:method ((source git-at-commit-source))
64+
(format nil "~A" (commit source))))
6065

6166
(defmethod make-release-tarball ((source git-source) output-file)
6267
(let ((prefix (release-tarball-prefix source))

0 commit comments

Comments
 (0)