Skip to content

Commit

Permalink
Fixed Settings file path
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonradivoev committed Sep 14, 2019
1 parent 562a6b3 commit ff09afd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Assets/Plugins/UniGit/Editor/GitSettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ public class GitSettingsManager : IDisposable
private readonly GitCallbacks gitCallbacks;
private readonly ILogger logger;
private readonly GitInitializer initializer;
private readonly GitManager gitManager;
private readonly UniGitPaths paths;

[UniGitInject]
public GitSettingsManager(UniGitPaths paths, GitSettingsJson settings,GitCallbacks gitCallbacks,ILogger logger,GitInitializer initializer, GitManager gitManager)
public GitSettingsManager(UniGitPaths paths, GitSettingsJson settings,GitCallbacks gitCallbacks,ILogger logger,GitInitializer initializer)
{
this.paths = paths;
this.gitManager = gitManager;
this.settings = settings;
this.gitCallbacks = gitCallbacks;
this.logger = logger;
Expand Down Expand Up @@ -75,8 +73,9 @@ public void LoadOldSettingsFile()
{
settings.Copy(oldSettingsFile);
logger.Log(LogType.Log,"Old Git Settings transferred to new json settings file. Old settings can now safely be removed.");
}
SaveSettingsToFile();

SaveSettingsToFile();
}
}

public void ShowChooseMainRepositoryPathPopup(EditorWindow context = null)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/UniGit/Editor/Utils/UniGitPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void SetRepoPath(string repoPath)
this.RepoPath = repoPath;

SettingsFolderPath = UniGitPathHelper.Combine(repoPath, ".git", "UniGit");
SettingsFilePath = UniGitPathHelper.Combine(SettingsFilePath, "Settings.json");
SettingsFilePath = UniGitPathHelper.Combine(SettingsFolderPath, "Settings.json");
LogsFolderPath = SettingsFolderPath;
LogsFilePath = UniGitPathHelper.Combine(LogsFolderPath, "log.txt");
CredentialsFilePath = UniGitPathHelper.Combine(SettingsFolderPath, "Credentials.json");
Expand Down

0 comments on commit ff09afd

Please sign in to comment.