Skip to content

Commit

Permalink
Merge pull request #3175 from OpenNeuroOrg/upload-worker-fix
Browse files Browse the repository at this point in the history
fix(worker): Update move_files_intro_repo for pygit2 0.15 or later
  • Loading branch information
nellh authored Oct 24, 2024
2 parents 7c03e93 + c2c6a9e commit 6642fea
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 6642fea

Please sign in to comment.