pingdotgg / pingdotgg/t3code

[Bug]: Git dir followed unconditionally

Open
#12,204 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accepted bug via-triage
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
  1. Create a folder in iCloud
  2. Use --git-dir to move the git metadata and files out outside the project
  3. Open the original folder in t3code as a project
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.