Spaces:
Sleeping
Sleeping
add some ignored patterns
Browse files
app.py
CHANGED
|
@@ -71,7 +71,13 @@ def process(git_repo_url, space_destination, user_token, space_sdk):
|
|
| 71 |
folder_path=tmp_dir,
|
| 72 |
repo_id=space_destination,
|
| 73 |
repo_type="space",
|
| 74 |
-
token=user_token
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
return f"Repository cloned ! Find it at hf.co/spaces/{space_destination}"
|
|
|
|
| 71 |
folder_path=tmp_dir,
|
| 72 |
repo_id=space_destination,
|
| 73 |
repo_type="space",
|
| 74 |
+
token=user_token,
|
| 75 |
+
commit_message="Migrated from GitHub",
|
| 76 |
+
ignore_patterns=[
|
| 77 |
+
"*.git*",
|
| 78 |
+
"*.DS_Store",
|
| 79 |
+
"*.env",
|
| 80 |
+
]
|
| 81 |
)
|
| 82 |
|
| 83 |
return f"Repository cloned ! Find it at hf.co/spaces/{space_destination}"
|