Commit
·
59e33b2
1
Parent(s):
f021afe
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def duplicate(source_repo, dst_repo, token, repo_type):
|
|
38 |
repo_type = None
|
39 |
for f in files:
|
40 |
if not f.startswith("."):
|
41 |
-
if
|
42 |
directories_list = root.split("/")
|
43 |
path_in_repo = "/".join(directories_list[3:]) # remove hub/namespace/reponame
|
44 |
print(local_dir, path_in_repo, f)
|
|
|
38 |
repo_type = None
|
39 |
for f in files:
|
40 |
if not f.startswith("."):
|
41 |
+
if ".git" not in root:
|
42 |
directories_list = root.split("/")
|
43 |
path_in_repo = "/".join(directories_list[3:]) # remove hub/namespace/reponame
|
44 |
print(local_dir, path_in_repo, f)
|