Skip to content

Use --author flag for commits with NEMAR user email #42

Closed

Description

@neuromechanist

Summary

Commits are currently authored as whoever's git config is set locally, not the NEMAR user. For example, cool-vibers uploads but commit shows "Seyed Yahya Shirazi".

Solution

Use git commit --author="username <email>" with the NEMAR user's registered email.

Validated Approach

See .context/validated_workflows.md section 8 (Commit Authorship for NEMAR Users).

# In datalad.ts saveDataset function:
git commit --author="${username} <${email}>" -m "Initial dataset upload"

Implementation

  1. Fetch user's registered email from backend (or cache in local config)
  2. Pass to saveDataset() function
  3. Use --author flag in git commit commands
  4. Consider also setting GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables

Parent Issue

Part of #41

Activity

  1. added 2 commits that reference this issue on Jan 21, 2026
    08e2910
    b474af7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions