Skip to content

Commit

Permalink
Fix not being able to upload with CLI because the commit_message was …
Browse files Browse the repository at this point in the history
…not being set
  • Loading branch information
kbolashev committed Oct 19, 2023
1 parent f3dfe1c commit 5a79ec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dagshub/upload/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def upload_files(
self,
files: List[FileUploadStruct],
directory_path: str = "",
commit_message: str = DEFAULT_COMMIT_MESSAGE,
commit_message: Optional[str] = DEFAULT_COMMIT_MESSAGE,
versioning: str = "auto",
new_branch: str = None,
last_commit: str = None,
Expand All @@ -280,6 +280,9 @@ def upload_files(
Sets last_commit to be the tip of the branch
"""

if commit_message is None:
commit_message = DEFAULT_COMMIT_MESSAGE

# Truncate the commit message because the max we allow is 100 symbols
commit_message = commit_message[:100]

Expand Down

0 comments on commit 5a79ec9

Please sign in to comment.