From 202e2cfd8b92f1f62721d6eac6ebfd0ab2086198 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 10 Jul 2022 12:51:13 +0530 Subject: [PATCH] [eks] Fix repo cloning --- src/eks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eks.py b/src/eks.py index cffdc856..e2a62c35 100644 --- a/src/eks.py +++ b/src/eks.py @@ -3,6 +3,7 @@ import re from datetime import datetime import json +REPO_CLONE_URL = 'https://github.com/awsdocs/amazon-eks-user-guide.git' PATH = 'doc_source/kubernetes-versions.md' TEMP_REPO_PATH = '/tmp/eks-docs' REGEX = r"^\+ (?P\d+)\\\.(?P\d+)\\\.(?P\d+)$" @@ -19,6 +20,7 @@ def add_versions(c_versions, commit): def get_versions(markdown): return re.findall(REGEX, markdown, re.MULTILINE) +pygit2.clone_repository(REPO_CLONE_URL, TEMP_REPO_PATH) repo = pygit2.Repository(TEMP_REPO_PATH) prev = None tree_list = []