updated
parent
eef660de21
commit
d505b0df16
3
main.py
3
main.py
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue