MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / fix_module_worktree_paths

Method fix_module_worktree_paths

src/git.rs:842–849  ·  view source on GitHub ↗

Fix worktree paths in .git/modules/*/config files if they use absolute paths. Returns any warnings encountered during the fix.

(&self, repo_path: &Path)

Source from the content-addressed store, hash-verified

840 /// Fix worktree paths in .git/modules/*/config files if they use absolute paths.
841 /// Returns any warnings encountered during the fix.
842 async fn fix_module_worktree_paths(&self, repo_path: &Path) -> Result<Vec<String>, String> {
843 let modules_dir = repo_path.join(".git/modules");
844 if !modules_dir.exists() {
845 return Ok(Vec::new());
846 }
847
848 self.fix_worktree_recursive(&modules_dir, repo_path).await
849 }
850
851 /// Recursively fix worktree paths in module config files.
852 /// Returns any warnings encountered during the fix.

Callers 1

fix_submodule_pathsMethod · 0.80

Calls 1

Tested by

no test coverage detected