You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid ancestor .git marker prevents adding a plain folder #4806
A plain folder nested below an incomplete .git directory is treated as if it were inside a Git repository. Adding the folder through Project Catalog then invokes Git; git rev-parse fails and the mutation surfaces as project.catalog.mutate → commit_outcome_unknown.
Expected: if the selected folder has no .git entry and an ancestor's .git metadata is structurally invalid, Maka should handle the selection like an ordinary non-Git folder. A malformed .git entry in the selected folder itself should continue to fail closed.
How to reproduce
Create an incomplete ancestor Git marker and a nested plain folder: mkdir -p /tmp/maka-invalid-git/.git/gk /tmp/maka-invalid-git/project
Open Maka Desktop.
Add /tmp/maka-invalid-git/project as a project.
Observe that registration fails with project.catalog.mutate → commit_outcome_unknown.
git -C /tmp/maka-invalid-git/project rev-parse --show-toplevel also exits 128 because Git discovers the malformed ancestor marker.
The ancestor .git contains only .git/gk/; it has no HEAD. hasEnclosingGitEntry currently treats any lstat-able .git entry as a repository marker, so the downstream Git probe receives corrupted ancestor state.
Activity
faga295 commentedon Sep 4, 2026
take