Compare commits

...

4 Commits

Author SHA1 Message Date
Nanashi.
76a9f5aad1 Merge 110353ee6c into 85e6279cec 2025-01-30 13:42:21 +01:00
Nanashi
110353ee6c Merge branch 'main' into patch-1 2022-12-20 20:06:47 +09:00
Nanashi
51ffdcdb1d Fix: Fix Syntax 2022-06-20 17:16:41 +09:00
Nanashi
f2738ccb35 Fix: Don't remove auth if submodules are off 2022-06-20 17:08:30 +09:00

View File

@@ -364,11 +364,13 @@ class GitAuthHelper {
}
}
const pattern = regexpHelper.escape(configKey)
await this.git.submoduleForeach(
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
true
)
if (this.settings.submodules) {
const pattern = regexpHelper.escape(configKey)
await this.git.submoduleForeach(
// wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
`sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
true
)
}
}
}