From a50cf5be7ac73bf97afde3c725a2ce5137962572 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 10 Jan 2023 12:47:38 +0100 Subject: just-import-git: accept config from stdin ... to allow simple chaining of imports. --- bin/just-import-git.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/just-import-git.py') diff --git a/bin/just-import-git.py b/bin/just-import-git.py index c061bc74..397c7a80 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -107,6 +107,8 @@ def get_repository_config_file(root=None): def get_base_config(repository_config): + if repository_config == "-": + return json.load(sys.stdin) if not repository_config: repository_config = get_repository_config_file() with open(repository_config) as f: -- cgit v1.2.3