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."