Spaces:
Runtime error
Runtime error
Commit
·
162d7ec
1
Parent(s):
cf05ee7
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ def Gitclone(URI:str,ClonePath:pathlib.Path ) -> int :
|
|
14 |
if pathlib.Path.exists(ClonePath):
|
15 |
return 0
|
16 |
for z in range(10):
|
17 |
-
i=subprocess.run([r"git",r"clone",
|
|
|
18 |
if(i.returncode == 0 ):
|
19 |
del i
|
20 |
return 0
|
@@ -241,4 +242,4 @@ try:
|
|
241 |
ret = subprocess.run(args)
|
242 |
except Exception as e:
|
243 |
print("Error:", e)
|
244 |
-
del os ,user_home ,
|
|
|
14 |
if pathlib.Path.exists(ClonePath):
|
15 |
return 0
|
16 |
for z in range(10):
|
17 |
+
i=subprocess.run([r"git",r"clone",
|
18 |
+
str(URI),str(ClonePath)])
|
19 |
if(i.returncode == 0 ):
|
20 |
del i
|
21 |
return 0
|
|
|
242 |
ret = subprocess.run(args)
|
243 |
except Exception as e:
|
244 |
print("Error:", e)
|
245 |
+
del os ,user_home ,executable ,subprocess
|