diff --git a/tekuti/git.scm b/tekuti/git.scm index cad4e0c..a3d597d 100644 --- a/tekuti/git.scm +++ b/tekuti/git.scm @@ -334,7 +334,7 @@ (cons (string->symbol k) v)))))) (define (fold-commits f rev seed) - (let lp ((rev (git-rev-parse rev)) (seed seed)) + (let lp ((rev (and rev (git-rev-parse rev))) (seed seed)) (if rev (let ((commit (parse-commit rev))) (lp (assq-ref commit 'parent)