update forgejo lxc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mathieu Broillet 2023-06-21 10:17:21 +02:00
parent 423bc70634
commit bffeb92008
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32

View File

@ -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)