This commit is contained in:
parent
423bc70634
commit
bffeb92008
@ -21,7 +21,7 @@ def run(args):
|
|||||||
if not pve.has_directory(pve.repo_path):
|
if not pve.has_directory(pve.repo_path):
|
||||||
logging.info(f"Cloning repository {args.repo} to {args.path}...")
|
logging.info(f"Cloning repository {args.repo} to {args.path}...")
|
||||||
git_utils.clone_repo(url=args.repo, path=args.path, linux_machine=pve)
|
git_utils.clone_repo(url=args.repo, path=args.path, linux_machine=pve)
|
||||||
elif pve.has_directory(args.path.joinpath(".git")):
|
elif pve.has_directory(Path(args.path).joinpath(".git")):
|
||||||
logging.info(f"Repository already cloned at {args.path}, updating...")
|
logging.info(f"Repository already cloned at {args.path}, updating...")
|
||||||
git_utils.update_repo(path=args.path, linux_machine=pve)
|
git_utils.update_repo(path=args.path, linux_machine=pve)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user