Create ExtensionsSD.py
Browse files- ExtensionsSD.py +21 -0
ExtensionsSD.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import git
|
| 2 |
+
|
| 3 |
+
def git_clone(repo_url, destination_folder):
|
| 4 |
+
try:
|
| 5 |
+
repo = git.Repo.clone_from(repo_url, destination_folder)
|
| 6 |
+
print(f"Repository {repo_url} cloned successfully.")
|
| 7 |
+
except git.exc.GitCommandError as e:
|
| 8 |
+
print(f"Error cloning repository {repo_url}: {e}")
|
| 9 |
+
|
| 10 |
+
# Replace these with your desired repository URLs and destination folders
|
| 11 |
+
repositories = [
|
| 12 |
+
{"url": "https://github.com/nolanaatama/microsoftexcel-tunnels.git", "folder": "/content/microsoftexcel/extensions/microsoftexcel-tunnels"},
|
| 13 |
+
{"url": "https://github.com/nolanaatama/microsoftexcel-controlnet.git", "folder": "/content/microsoftexcel/extensions/microsoftexcel-controlnet"}
|
| 14 |
+
{"url": "https://github.com/fkunn1326/openpose-editor", "folder": "/content/microsoftexcel/extensions/openpose-editor"}
|
| 15 |
+
{"url": "https://github.com/nolanaatama/microsoftexcel-3d-open-pose-editor", "folder": "/content/microsoftexcel/extensions/microsoftexcel-3d-open-pose-editor
|
| 16 |
+
{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-tagcomplete", "folder": "/content/microsoftexcel/extensions/a1111-microsoftexcel-tagcomplete"}
|
| 17 |
+
{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-locon", "folder": "/content/microsoftexcel/extensions/a1111-microsoftexcel-locon"}
|
| 18 |
+
]
|
| 19 |
+
|
| 20 |
+
for repo_info in repositories:
|
| 21 |
+
git_clone(repo_info["url"], repo_info["folder"])
|