From e0627af77760b35db2895e4534f9994e30d4c46f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 12 Jan 2024 12:42:39 -0500 Subject: [PATCH] [DATALAD RUNCMD] run codespell throughout fixing typo automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- .../scripts/dataset/mutations/create-anonymous-reviewer.tsx | 2 +- services/datalad/datalad_service/common/git.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx b/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx index af42c71ae..34ac4f5ab 100644 --- a/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx +++ b/packages/openneuro-app/src/scripts/dataset/mutations/create-anonymous-reviewer.tsx @@ -30,7 +30,7 @@ export const CreateReviewLink: FC = ({ datasetId }) => {
{error ? ( - "An Error Occured" + "An Error Occurred" ) : data ? ( diff --git a/services/datalad/datalad_service/common/git.py b/services/datalad/datalad_service/common/git.py index ea5bbae7e..49a526a02 100644 --- a/services/datalad/datalad_service/common/git.py +++ b/services/datalad/datalad_service/common/git.py @@ -14,9 +14,9 @@ class OpenNeuroGitError(Exception): """OpenNeuro git repo states that should not arise under normal use but may be a valid git operation in other contexts.""" -def git_show(path, commitish, obj): +def git_show(path, committish, obj): repo = pygit2.Repository(path) - commit, _ = repo.resolve_refish(commitish) + commit, _ = repo.resolve_refish(committish) data_bytes = (commit.tree / obj).read_raw() encoding = chardet.detect(data_bytes[0:4096])["encoding"] or 'utf-8' return data_bytes.decode(encoding)