Skip to content

Commit 6642fea

Browse files
authored
Merge pull request #3175 from OpenNeuroOrg/upload-worker-fix
fix(worker): Update move_files_intro_repo for pygit2 0.15 or later
2 parents 7c03e93 + c2c6a9e commit 6642fea

File tree

1 file changed

+2
-2
lines changed
  • services/datalad/datalad_service/handlers

1 file changed

+2
-2
lines changed

services/datalad/datalad_service/handlers/upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async def move_files_into_repo(dataset_id, dataset_path, upload_path, name, emai
2727
await move_files(upload_path, dataset_path)
2828
if name and email:
2929
author = pygit2.Signature(name, email)
30-
hexsha = git_commit(repo, unlock_files, author).hex
30+
hexsha = str(git_commit(repo, unlock_files, author))
3131
else:
32-
hexsha = git_commit(repo, unlock_files).hex
32+
hexsha = str(git_commit(repo, unlock_files))
3333

3434

3535
class UploadResource:

0 commit comments

Comments
 (0)