Skip to content

Commit

Permalink
Make GPG Pass store path configurable by git config
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitsyn committed Sep 4, 2024
1 parent 415adfe commit 71b5d06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.1.0
2.5.101.0
1 change: 1 addition & 0 deletions src/shared/Core/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public static class Credential
public const string DevUseLegacyUiHelpers = "devUseLegacyUiHelpers";
public const string MsAuthUseDefaultAccount = "msauthUseDefaultAccount";
public const string GuiSoftwareRendering = "guiSoftwareRendering";
public const string GpgPassStorePath = "gpgPassStorePath";

public const string OAuthAuthenticationModes = "oauthAuthModes";
public const string OAuthClientId = "oauthClientId";
Expand Down
3 changes: 2 additions & 1 deletion src/shared/Core/CredentialStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ private void ValidateGpgPass(out string storeRoot, out string execPath)
// Check for a redirected pass store location
if (!_context.Settings.TryGetSetting(
GpgPassCredentialStore.PasswordStoreDirEnvar,
null, null,
Constants.GitConfiguration.Credential.SectionName,
Constants.GitConfiguration.Credential.GpgPassStorePath,
out storeRoot))
{
// Use default store root at ~/.password-store
Expand Down

0 comments on commit 71b5d06

Please sign in to comment.