summaryrefslogtreecommitdiff
path: root/bin/just-import-git.py
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-10 12:47:38 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-10 15:54:32 +0100
commita50cf5be7ac73bf97afde3c725a2ce5137962572 (patch)
tree6d10cd9a77a83f95fb53747f36840381b0c1fd44 /bin/just-import-git.py
parent3e6ba85cacea36cfbebdbea4d5e96c5f068cb990 (diff)
downloadjustbuild-a50cf5be7ac73bf97afde3c725a2ce5137962572.tar.gz
just-import-git: accept config from stdin
... to allow simple chaining of imports.
Diffstat (limited to 'bin/just-import-git.py')
-rwxr-xr-xbin/just-import-git.py2
1 files changed, 2 insertions, 0 deletions
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: