Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit eb3c65c

Browse files
Discovering UserCachePath
1 parent efbad1c commit eb3c65c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public void Run(bool firstRun)
7272
}
7373
});
7474

75-
var applicationDataPath = Environment.GetSpecialFolder(System.Environment.SpecialFolder.LocalApplicationData).ToNPath();
76-
var installDetails = new GitInstallDetails(applicationDataPath, true);
75+
var installDetails = new GitInstallDetails(Environment.UserCachePath, true);
7776
var gitInstaller = new GitInstaller(Environment, CancellationToken, installDetails);
7877

7978
// if successful, continue with environment initialization, otherwise try to find an existing git installation

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class GitInstallDetails
2525

2626
private readonly bool onWindows;
2727

28-
public GitInstallDetails(NPath applicationDataPath, bool onWindows)
28+
public GitInstallDetails(NPath pluginDataPath, bool onWindows)
2929
{
3030
this.onWindows = onWindows;
3131

32-
PluginDataPath = applicationDataPath.Combine(ApplicationInfo.ApplicationName);
32+
PluginDataPath = pluginDataPath;
3333

3434
var gitInstallPath = PluginDataPath.Combine(PackageNameWithVersion);
3535
GitInstallationPath = gitInstallPath;

0 commit comments

Comments
 (0)