Skip to content

Commit 4c3e663

Browse files
committed
fix: Smudge non-annexed files, ensuring eol enforcement
1 parent 380c6ee commit 4c3e663

File tree

1 file changed

+3
-0
lines changed
  • services/datalad/datalad_service/common

1 file changed

+3
-0
lines changed

services/datalad/datalad_service/common/git.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ async def git_commit(
163163
sentry_sdk.capture_exception(e)
164164
logger.error(f'Failed to read index after git-annex add: {e}')
165165
raise OpenNeuroGitError(f'Failed to read index: {e}') from e
166+
# Ensure non-annexed files are smudged, e.g., update end-of-lines
167+
# but do not "fix" unrelated paths
168+
repo.index.add_all(file_paths)
166169
return await git_commit_index(repo, author, message, parents)
167170

168171

0 commit comments

Comments
 (0)