fffiloni commited on
Commit
2d11ae6
1 Parent(s): 53168c3

add some ignored patterns

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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}"