Skip to content

Conversation

@Moe-Salim91156
Copy link

@Moe-Salim91156 Moe-Salim91156 commented Dec 26, 2025

Closes #2115

✅ Checklist

  • I have followed every step in the contributing guide (updated 2022-10-06).
  • The PR title follows the convention established conventional-commit
  • I performed a functional test on my final commit

Changelog

Improved error handling for git operations when encountering 'dubious ownership' errors. This commonly occurs on FAT32, exFAT, or network drives where file ownership information isn't preserved.

Changes:

  • Added specific detection for dubious ownership errors in isInsideGitRepo and initializeGit functions
  • Replaced generic error messages with helpful explanations about the cause
  • Provide exact fix command: git config --global --add safe.directory "<path>"
  • Show actual error details for non-ownership related failures
  • Added test script to reproduce and verify the fix

Before: Generic "Update git!" message that didn't help users understand or fix the issue

After: Clear explanation of what caused the error, why it happens (FAT32/exFAT/network drives), and the exact command to fix it


screenshots

Screenshot from 2025-12-26 22-37-56 Screenshot from 2025-12-26 22-38-00

- Add specific error detection for 'dubious ownership' in git operations
- Replace generic 'Update git!' message with helpful explanation
- Clarify that FAT32/exFAT/network drives don't record ownership
- Provide exact fix command in error message
- Show actual error details for non-ownership related failures
- Add test script to reproduce and verify the fix

Fixes t3-oss#2115
@changeset-bot
Copy link

changeset-bot bot commented Dec 26, 2025

🦋 Changeset detected

Latest commit: 53f5ba1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-t3-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
create-t3-app Ready Ready Preview, Comment Dec 26, 2025 7:52pm

@Moe-Salim91156 Moe-Salim91156 changed the title Fix/git init error message 2115 fix: A bug fix git init error message 2115 Dec 26, 2025
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.

bug: git init error with unsafe repositories

1 participant