From a40127f8ed6ec3be96c457aa40535d698cc00e70 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 15 Oct 2021 15:36:21 +0200 Subject: [PATCH] for_all_repos: Empty KAS_REPO_URL if repo is not under version control repo.url will point the repo.path in that case, but we want the user to see an empty KAS_REPO_URL, as also documented. Reported-by: Daniel Wagenknecht Signed-off-by: Jan Kiszka --- kas/plugins/for_all_repos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kas/plugins/for_all_repos.py b/kas/plugins/for_all_repos.py index 8351b72..50e57e4 100644 --- a/kas/plugins/for_all_repos.py +++ b/kas/plugins/for_all_repos.py @@ -100,7 +100,7 @@ class ForAllReposCommand(Command): **ctx.environ, 'KAS_REPO_NAME': repo.name, 'KAS_REPO_PATH': repo.path, - 'KAS_REPO_URL': repo.url or '', + 'KAS_REPO_URL': '' if repo.operations_disabled else repo.url, 'KAS_REPO_REFSPEC': repo.refspec or '', } logging.info('%s$ %s', repo.path, self.command)