Skip to content

fix: resolve relative gitdir paths for nested submodules#343

Open
calebtuttle wants to merge 1 commit intodagger:mainfrom
calebtuttle:fix/nested-submodule-gitdir-path
Open

fix: resolve relative gitdir paths for nested submodules#343
calebtuttle wants to merge 1 commit intodagger:mainfrom
calebtuttle:fix/nested-submodule-gitdir-path

Conversation

@calebtuttle
Copy link
Copy Markdown

Nested submodules (e.g., libs/some-submodule) failed during environment creation because readSubmoduleGitdirPath returned relative gitdir paths verbatim. After exportEnvironment wipes the worktree and recreates root .git as a pointer file, these relative paths no longer resolve on the filesystem.

Resolve relative paths to absolute in readSubmoduleGitdirPath, matching the approach already used for the root .git pointer in exportEnvironment.

Nested submodules (e.g., libs/some-submodule) failed
during environment creation because readSubmoduleGitdirPath returned
relative gitdir paths verbatim. After exportEnvironment wipes the
worktree and recreates root .git as a pointer file, these relative
paths no longer resolve on the filesystem.

Resolve relative paths to absolute in readSubmoduleGitdirPath, matching
the approach already used for the root .git pointer in exportEnvironment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant