master
SLW\ARNAUA 2023-07-12 19:34:51 +02:00
parent eef660de21
commit d505b0df16
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s')
def fetch_branches(repo):
logging.info("fetching branches...")
# branches = [repo.git.branch("-r").replace("origin/", "").split("\n ")]
# branches = repo.remotes.origin.fetch()
branch_list = [r.remote_head for r in repo.remote().refs]
@ -25,7 +26,7 @@ def fetch_branches(repo):
def fetch_repository(REPOSITORY_URL, REPOSITORY_PATH):
logging.debug("fetching repository %s", str(REPOSITORY_URL))
logging.info("fetching repository %s", str(REPOSITORY_URL))
# git.Repo(Path(config(REPOSITORY_PATH)))
repo = git.Repo.clone_from(REPOSITORY_URL,
Path("../coco_apm_terraform_onboarding"))