Skip to content

Commit 71b5d06

Browse files
committed
Make GPG Pass store path configurable by git config
1 parent 415adfe commit 71b5d06

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.1.0
1+
2.5.101.0

src/shared/Core/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public static class Credential
162162
public const string DevUseLegacyUiHelpers = "devUseLegacyUiHelpers";
163163
public const string MsAuthUseDefaultAccount = "msauthUseDefaultAccount";
164164
public const string GuiSoftwareRendering = "guiSoftwareRendering";
165+
public const string GpgPassStorePath = "gpgPassStorePath";
165166

166167
public const string OAuthAuthenticationModes = "oauthAuthModes";
167168
public const string OAuthClientId = "oauthClientId";

src/shared/Core/CredentialStore.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ private void ValidateGpgPass(out string storeRoot, out string execPath)
276276
// Check for a redirected pass store location
277277
if (!_context.Settings.TryGetSetting(
278278
GpgPassCredentialStore.PasswordStoreDirEnvar,
279-
null, null,
279+
Constants.GitConfiguration.Credential.SectionName,
280+
Constants.GitConfiguration.Credential.GpgPassStorePath,
280281
out storeRoot))
281282
{
282283
// Use default store root at ~/.password-store

0 commit comments

Comments
 (0)