Spaces:
Running
Running
Commit
·
0b5b185
1
Parent(s):
6929d87
Update clone.py
Browse files
clone.py
CHANGED
@@ -3,4 +3,7 @@ import os
|
|
3 |
|
4 |
GITHUB_PAT = os.environ['GITHUB']
|
5 |
def clone_repo():
|
6 |
-
|
|
|
|
|
|
|
|
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' )
|