id: 003 title: Use git-configured user for commits status: open type: enhancement priority: low tags: [init, git-config] assignee: created: 2025-09-27T18:00:00Z updated: 2025-09-27T18:00:00Z
Use git-configured user for commits
Problem Description
The tissue init command currently hardcodes the commit author as “Tissue CLI” with email “tissue@example.com” when creating the initial commit on the issues branch. This should instead use the user’s git configuration.
Current Behavior
// Hardcoded in cmd/init.go
Author: &object.Signature{
Name: "Tissue CLI",
Email: "tissue@example.com",
When: time.Now(),
}
Expected Behavior
- Read
user.nameanduser.emailfrom git config - If not configured, prompt user to configure (similar to git’s behavior)
- Use the configured values for all commits made by tissue
Implementation Notes
- Use go-git’s config reading capabilities to get user settings
- Check global config first, then local repo config
- If neither is set, show error message with instructions:
Please configure your git user: git config --global user.name "Your Name" git config --global user.email "your.email@example.com"
Acceptance Criteria
- Commits use the git-configured user name and email
- Clear error message if git user is not configured
- No hardcoded “Tissue CLI” author in commits