fix<MacOS>: wrong path to find Terminal.app; GitInstallDir ends to the folder that contains bin/git; way to open and select file in Finder

This commit is contained in:
leo 2024-02-18 19:00:42 +08:00
parent 5ac7d78796
commit d74a3fb550
4 changed files with 7 additions and 4 deletions

View file

@ -74,7 +74,7 @@ namespace SourceGit.Views {
if (DefaultUser != oldUser) cmd.Set("user.name", DefaultUser);
if (DefaultEmail != oldEmail) cmd.Set("user.email", DefaultEmail);
if (GPGUserKey != oldGPGSignKey) cmd.Set("user.signingkey", GPGUserKey);
if (CRLFMode.Value != oldCRLF) cmd.Set("core.autocrlf", CRLFMode.Value);
if (CRLFMode != null && CRLFMode.Value != oldCRLF) cmd.Set("core.autocrlf", CRLFMode.Value);
if (EnableGPGSigning != (oldGPGSignEnable == "true")) cmd.Set("commit.gpgsign", EnableGPGSigning ? "true" : "false");
if (GPGExecutableFile != oldGPGExec) cmd.Set("gpg.program", GPGExecutableFile);