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 0f00223 commit e0627af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 e0627af

Please sign in to comment.