From 859d3d958057e35b618e8cca209a85317d49a974 Mon Sep 17 00:00:00 2001 From: Woody Lin Date: Thu, 3 Nov 2022 19:46:38 +0800 Subject: [PATCH] GitcInit: fix gitc-init failure Aligns argument usage of refactored GitcManifest (8c1e9cbef "manifest_xml: refactor manifest parsing from client management") to fix the `repo gitc-init` error: `fatal: manifest_file must be abspath`. Change-Id: I1728032cce3f39ed1077bbb7ef714410c2c49e1a Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/350374 Tested-by: Woody Lin Reviewed-by: LaMont Jones Reviewed-by: Xin Li --- subcmds/gitc_init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 1d81baf5..e3a5813d 100644 --- a/subcmds/gitc_init.py +++ b/subcmds/gitc_init.py @@ -68,7 +68,8 @@ use for this GITC client. sys.exit(1) manifest_file = opt.manifest_file - manifest = GitcManifest(self.repodir, gitc_client) + manifest = GitcManifest(self.repodir, os.path.join(self.client_dir, + '.manifest')) manifest.Override(manifest_file) gitc_utils.generate_gitc_manifest(None, manifest) print('Please run `cd %s` to view your GITC client.' %