From a5f7c2ce44ce84224ffb4f8cf75b67ec22e971ca Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Wed, 25 May 2022 13:09:39 +0900 Subject: [PATCH] Remove the lines that overwrite other settings (#83) --- src/trops/env.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/trops/env.py b/src/trops/env.py index 08b18b7..4b22b13 100644 --- a/src/trops/env.py +++ b/src/trops/env.py @@ -219,11 +219,8 @@ def update(self): f"The '{ self.trops_env }' environment does not exists on { self.trops_conf }") exit(1) - config[self.trops_env]['git_dir'] = self.trops_git_dir - config[self.trops_env]['sudo'] = 'False' - config[self.trops_env]['work_tree'] = self.trops_work_tree - if self.trops_git_remote: - config[self.trops_env]['git_remote'] = self.trops_git_remote + if self.args.git_remote: + config[self.trops_env]['git_remote'] = self.args.git_remote if self.args.logfile: config[self.trops_env]['logfile'] = self.args.logfile if self.args.tags: