Allow configuring custom storage location for cloned repositories#245
Closed
Allow configuring custom storage location for cloned repositories#245
Conversation
- Add `RepoStorageDir` property to `ConnectionSettings` - Add `SetCustomStorageDir()` and `GetEffectiveStorageDir()` to `RepoManager` - Apply custom storage dir at app startup in `MauiProgram.cs` - Add 'Repositories' settings group in Settings.razor with path input - Add `.repo-storage-row` CSS style - Add 6 new tests for the new behavior Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option to change location of cloned repositories
Allow configuring custom storage location for cloned repositories
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users on Windows DevDrive (or any non-default code storage location) had no way to redirect where PolyPilot stores bare repo clones and worktrees — everything went to
~/.polypilot/reposand~/.polypilot/worktrees, potentially consuming large amounts of profile-directory space.Changes
ConnectionSettings— newRepoStorageDirpropertystring;null= use default~/.polypilotsettings.jsonvia existing serializationRepoManager— custom storage dir supportSetCustomStorageDir(string? path)— applies override, invalidates cached pathsGetEffectiveStorageDir()— returns the active storage root (testable)GetReposDir()/GetWorktreesDir()now resolve underRepoStorageDirwhen set; state file (repos.json) stays in~/.polypilotSetBaseDirForTesting()also clears_customStorageDirto preserve test isolationMauiProgram— apply at startupApplied before any
RepoManageraccess; failure is non-fatal (falls back to default).Settings UI — new "Repositories" group
IOExceptionmessage on failure)RepoManagerimmediately on save; searchable via keywordsrepo storage location clone directory path devdriveBareClonePath; only newly cloned repos use the new locationTests
RepoManagerTestscoveringSetCustomStorageDiredge cases (null, whitespace, valid path)ConnectionSettingsTestscoveringRepoStorageDirdefault and serialization round-tripsWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
192.0.2.1/usr/share/dotnet/dotnet /usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/PolyPilot/PolyPilot/PolyPilot.Tests/bin/Debug/net10.0/PolyPilot.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/PolyPilot/PolyPilot/PolyPilot.Tests/bin/Debug/net10.0/PolyPilot.Tests.deps.json /home/REDACTED/work/PolyPilot/PolyPilot/PolyPilot.Tests/bin/Debug/net10.0/testhost.dll --port 46355 --endpoint 127.0.0.1:046355 --role client --parentprocessid 4377 --telemetryoptedin false(packet block)imzvsblobprodcus368.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/622A4908CDBE24FF535A100F8AC55E4F/missingpackages_workingdir --packages /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.