From 4517ceb56e30c7e208bb063dc23d77e7c621bf0e Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 10 Jul 2016 21:37:13 +0000 Subject: update `get-difme-repos` function. * git-difme.scm (get-difme-repos): trim the strings of each of the repo-info list that is returned by `difme-repos` function. --- git-difme.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git-difme.scm b/git-difme.scm index f67dfe6..9226c14 100644 --- a/git-difme.scm +++ b/git-difme.scm @@ -52,7 +52,10 @@ loads the configuration file and then evals the `difme-repos` function." (let ((path (get-config-path))) (load-config path) - (eval '(difme-repos) (interaction-environment)))) + (map (lambda (repo-info) + ;; trim each string repo-info. + (map string-trim-both repo-info)) + (eval '(difme-repos) (interaction-environment))))) ;;;; git interfaces (define (staged-files repo) -- cgit v1.2.3