Skip to content

fix: use NEMAR user identity for datalad create commits - #54

Merged
neuromechanist merged 1 commit into
devfrom
fix/commit-authorship
Jan 21, 2026
Merged

neuromechanist merged 1 commit into
devfrom
fix/commit-authorship

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Fixed commit authorship bug where datalad create was using global git config instead of NEMAR user identity
  • Added author parameter to createDataladDataset function
  • Pass GIT_AUTHOR_* and GIT_COMMITTER_* env vars to ensure all commits are attributed correctly
  • Updated both dataset.ts and sandbox.ts to pass author info

Problem

When uploading datasets, the initial [DATALAD] new dataset commit was showing the global git config author (e.g., [email protected]) instead of the NEMAR user identity (e.g., cool-vibers <[email protected]>).

Fix

The saveDataset function was already correctly setting author env vars, but createDataladDataset was not. This PR adds the same author override capability to createDataladDataset.

Test plan

  • Build passes
  • Test sandbox upload with regular user on MBA
  • Verify initial commit shows NEMAR user identity

The initial [DATALAD] new dataset commit was using global git config
instead of NEMAR user identity. Added author parameter to
createDataladDataset and pass GIT_AUTHOR_* env vars to ensure all
commits are attributed to the correct NEMAR user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant