Skip to content

Commit

Permalink
fix(worker): Update move_files_intro_repo for pygit2 1.15.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Oct 16, 2024
1 parent 0bf65b0 commit c2c6a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/datalad/datalad_service/handlers/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ async def move_files_into_repo(dataset_id, dataset_path, upload_path, name, emai
await move_files(upload_path, dataset_path)
if name and email:
author = pygit2.Signature(name, email)
hexsha = git_commit(repo, unlock_files, author).hex
hexsha = str(git_commit(repo, unlock_files, author))
else:
hexsha = git_commit(repo, unlock_files).hex
hexsha = str(git_commit(repo, unlock_files))


class UploadResource:
Expand Down

0 comments on commit c2c6a9e

Please sign in to comment.