aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/cuirass.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in
index e1ce5e6..f0ea3a7 100644
--- a/bin/cuirass.in
+++ b/bin/cuirass.in
@@ -61,12 +61,16 @@ DIR if required."
(with-directory-excursion cachedir
(let ((name (job-spec-name spec))
(url (job-spec-url spec))
- (branch (job-spec-branch spec)))
+ (branch (job-spec-branch spec))
+ (commit (job-spec-commit spec))
+ (tag (job-spec-tag spec)))
(or (file-exists? name) (system* "git" "clone" url name))
(with-directory-excursion name
(and (zero? (system* "git" "fetch"))
(zero? (system* "git" "reset" "--hard"
- (string-append "origin/" branch))))))))
+ (or tag
+ commit
+ (string-append "origin/" branch)))))))))
(define (evaluate store db cachedir spec)
"Evaluate and build package derivations. Return a list a jobs."