F1-analysis / clone.py
tracinginsights's picture
Update clone.py
0b5b185
raw
history blame
282 Bytes
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' )