From dba15ac9904725795f1ec8d8d11dabfe843557ff Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 1 Mar 2014 21:07:22 +0100 Subject: [PATCH] Promote hookwrapper to procedure --- gitto/main.scm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gitto/main.scm b/gitto/main.scm index 5b288de..212f5dc 100644 --- a/gitto/main.scm +++ b/gitto/main.scm @@ -46,6 +46,11 @@ (for-each print-repository-location (sort repositories repository-location repository)) - (format #t "Unknown repository: ~a~%" repository)) - (for-each hookwrapper repositories)))))) + (if repository + (if (known? repository) + (maybe-install-hooks. (make repository)) + (format #t "Unknown repository: ~a~%" repository)) + (for-each maybe-install-hooks. repositories))))) (define-command (list . args) "List information about every repository."