Skip to content

Commit 863435e

Browse files
authored
Merge pull request #492 from cbinyu/fix_datalad_tests
Update datalad call in test_prepare_for_datalad
2 parents f757dd8 + ca52387 commit 863435e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def test_prepare_for_datalad(tmpdir):
155155
assert '.heudiconv/dummy.nii.gz' in ds.repo.get_files()
156156

157157
# Let's now roll back and make it a proper submodule
158-
ds.repo._git_custom_command([], ['git', 'reset', '--hard', old_hexsha])
158+
ds.repo.call_git(['reset', '--hard', old_hexsha])
159159
# now we do not add dummy to git
160160
create_file_if_missing(dummy_path, '')
161161
add_to_datalad(str(tmpdir), studydir_, None, False)

0 commit comments

Comments
 (0)