tracinginsights commited on
Commit
0b5b185
·
1 Parent(s): 6929d87

Update clone.py

Browse files
Files changed (1) hide show
  1. clone.py +4 -1
clone.py CHANGED
@@ -3,4 +3,7 @@ import os
3
 
4
  GITHUB_PAT = os.environ['GITHUB']
5
  def clone_repo():
6
- return Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/Charts.git', 'repo_directory' )
 
 
 
 
3
 
4
  GITHUB_PAT = os.environ['GITHUB']
5
  def clone_repo():
6
+ if os.path.exists(repo_directory):
7
+ None
8
+ else:
9
+ return Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/Charts.git', 'repo_directory' )