File size: 282 Bytes
55a036a
 
 
 
ac7c87e
0b5b185
 
 
 
1
2
3
4
5
6
7
8
9
from git import Repo
import os

GITHUB_PAT = os.environ['GITHUB']
def clone_repo():
    if os.path.exists(repo_directory):
        None
    else:       
        return Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/Charts.git', 'repo_directory'  )