Skip to content

Commit a370417

Browse files
committed
.
1 parent 671525b commit a370417

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,12 @@ class GitAuthHelper {
559559
const credentialsPaths = new Set();
560560
try {
561561
// Get all includeIf.gitdir keys
562-
const keys = yield this.git.tryGetConfigKeys('^includeIf\\.gitdir:', false, configPath);
562+
const keys = yield this.git.tryGetConfigKeys('^includeIf\\.gitdir:', false, // globalConfig?
563+
configPath);
563564
for (const key of keys) {
564565
// Get all values for this key
565-
const values = yield this.git.tryGetConfigValues(key, false, configPath);
566+
const values = yield this.git.tryGetConfigValues(key, false, // globalConfig?
567+
configPath);
566568
if (values.length > 0) {
567569
// Remove only values that match git-credentials-<uuid>.config pattern
568570
for (const value of values) {

src/git-auth-helper.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,17 @@ class GitAuthHelper {
544544
// Get all includeIf.gitdir keys
545545
const keys = await this.git.tryGetConfigKeys(
546546
'^includeIf\\.gitdir:',
547-
false,
547+
false, // globalConfig?
548548
configPath
549549
)
550550

551551
for (const key of keys) {
552552
// Get all values for this key
553-
const values = await this.git.tryGetConfigValues(key, false, configPath)
553+
const values = await this.git.tryGetConfigValues(
554+
key,
555+
false, // globalConfig?
556+
configPath
557+
)
554558
if (values.length > 0) {
555559
// Remove only values that match git-credentials-<uuid>.config pattern
556560
for (const value of values) {

0 commit comments

Comments
 (0)