[Bug]: Git dir followed unconditionally
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Create a folder in iCloud
- Use --git-dir to move the git metadata and files out outside the project
- Open the original folder in t3code as a project
- t3 opens the root project in the git folder instead and can't find anything like skills
Expected behavior
The follow to the git-dir and it's git-dir is fine, but if the back link is missing it should stay in the requested folder not a random git folder.
Actual behavior
Follows git-dir blindly and doesn't respect the folder the user requested.
Impact
Minor bug or occasional failure
Version or commit
Nightly latest
Environment
MacOS
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Fixed by setting the backlink:
git --git-dir=$HOME/.obsidian/git/v1 config core.worktree $HOME/obsidian/V1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in apps/desktop by reproducing the project-opening flow with a folder whose Git metadata is moved using --git-dir. Trace how the requested folder is resolved when the Git directory points elsewhere, then verify that a missing backlink keeps the requested folder instead of opening the Git folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100