Skip to content

Commit

Permalink
[DATALAD RUNCMD] run codespell throughout fixing typo automagically
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Jan 12, 2024
1 parent 62ff18f commit 5f28696
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const CreateReviewLink: FC<CreateReviewLinkProps> = ({ datasetId }) => {
<div className="share-form-controls">
{error
? (
"An Error Occured"
"An Error Occurred"
)
: data
? (
Expand Down
4 changes: 2 additions & 2 deletions services/datalad/datalad_service/common/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f28696

Please sign in to comment.