Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 64fec93

Browse files
committed
Set the default clone path to ~\Source\Repos
1 parent b2456d8 commit 64fec93

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/GitHub.App/Extensions/EnvironmentExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ public static string GetUserDocumentsPathForApplication(this Rothko.IEnvironment
2525
{
2626
return Path.Combine(environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), ApplicationInfo.ApplicationName);
2727
}
28+
29+
public static string GetUserRepositoriesPath(this Rothko.IEnvironment environment)
30+
{
31+
return Path.Combine(environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Source", "Repos");
32+
}
2833
}
2934
}

src/GitHub.App/Services/RepositoryCloneService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public RepositoryCloneService(IOperatingSystem operatingSystem, IVSServices vsse
3030
this.operatingSystem = operatingSystem;
3131
this.vsservices = vsservices;
3232

33-
defaultClonePath = GetLocalClonePathFromGitProvider(operatingSystem.Environment.GetUserDocumentsPathForApplication());
33+
defaultClonePath = GetLocalClonePathFromGitProvider(operatingSystem.Environment.GetUserRepositoriesPath());
3434
}
3535

3636
public IObservable<Unit> CloneRepository(string cloneUrl, string repositoryName, string repositoryPath)

0 commit comments

Comments
 (0)