From 045fffaa91d98a771f9e3bf6ac8248565bd0d41f Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 28 Nov 2024 17:48:29 +0100 Subject: just-import-git: Fix foreign config location As per documentation, if a location is given for the configuration file in the foreign repository then it must be taken relative to its root. However, in our implementation this location is taken relative to the current directory. Fix this. --- bin/just-import-git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/just-import-git.py') diff --git a/bin/just-import-git.py b/bin/just-import-git.py index eb3b690f..d2c25eef 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -274,7 +274,8 @@ def handle_import(args: Namespace) -> Json: inherit_env=args.inherit_env, ) if args.foreign_repository_config: - foreign_config_file = args.foreign_repository_config + foreign_config_file = os.path.join(srcdir, + args.foreign_repository_config) else: foreign_config_file = get_repository_config_file(srcdir) foreign_config: Json = {} -- cgit v1.2.3