Skip to content

Fix local Git source branch preparation#377

Open
ramblezhang wants to merge 1 commit into
AIDotNet:mainfrom
ramblezhang:ram-36-local-git-source-clean
Open

Fix local Git source branch preparation#377
ramblezhang wants to merge 1 commit into
AIDotNet:mainfrom
ramblezhang:ram-36-local-git-source-clean

Conversation

@ramblezhang

Copy link
Copy Markdown

Summary

  • Treat local::... sources that are exact Git repositories or worktrees as branch-aware Git sources.
  • Reclone invalid or polluted local Git workspaces when the workspace root or origin does not match the expected target.
  • Pass per-process safe.directory configuration through local clone/fetch upload-pack calls.
  • Fetch the resolved source branch ref explicitly before checkout and validate the target commit exists in the workspace.
  • Normalize legacy local-directory snapshot baselines only for exact local Git sources, while preserving normal incremental tasks for real Git commit changes.

Validation

  • dotnet test tests/OpenDeepWiki.Tests/OpenDeepWiki.Tests.csproj --filter "FullyQualifiedName~RepositoryAnalyzerSourceTests|FullyQualifiedName~IncrementalUpdateWorkerTests"
  • dotnet build OpenDeepWiki.sln --no-restore
  • git diff --check origin/main..HEAD

Follow-up correctness fix for merged PR #375.

@ramblezhang ramblezhang force-pushed the ram-36-local-git-source-clean branch 2 times, most recently from 3290f4e to b0c98f6 Compare July 5, 2026 03:40
@ramblezhang ramblezhang force-pushed the ram-36-local-git-source-clean branch from b0c98f6 to 3d1b11d Compare July 5, 2026 03:47
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