Unverified Commit 93f73a38 authored by NielsRogge's avatar NielsRogge Committed by GitHub
Browse files

Fix push to hub (#24187)

Add fix
parent e26c6f03
...@@ -712,7 +712,6 @@ class PushToHubMixin: ...@@ -712,7 +712,6 @@ class PushToHubMixin:
operations = [] operations = []
# upload standalone files # upload standalone files
for file in modified_files: for file in modified_files:
operations.append(CommitOperationAdd(path_or_fileobj=os.path.join(working_dir, file), path_in_repo=file))
if os.path.isdir(os.path.join(working_dir, file)): if os.path.isdir(os.path.join(working_dir, file)):
# go over individual files of folder # go over individual files of folder
for f in os.listdir(os.path.join(working_dir, file)): for f in os.listdir(os.path.join(working_dir, file)):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment