@teamvibe/poller 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brain-manager.js +6 -3
- package/package.json +1 -1
package/dist/brain-manager.js
CHANGED
|
@@ -7,11 +7,14 @@ import { logger } from './logger.js';
|
|
|
7
7
|
const execAsync = promisify(exec);
|
|
8
8
|
// Clean env for git commands:
|
|
9
9
|
// - npm/npx sets GIT_ASKPASS which prevents credential helpers from working
|
|
10
|
-
// - /
|
|
10
|
+
// - PERSISTENT_STORAGE_PATH/bin may contain tools like gh not in default PATH
|
|
11
11
|
const gitEnv = { ...process.env };
|
|
12
12
|
delete gitEnv['GIT_ASKPASS'];
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
if (config.PERSISTENT_STORAGE_PATH) {
|
|
14
|
+
const binDir = `${config.PERSISTENT_STORAGE_PATH}/bin`;
|
|
15
|
+
if (!gitEnv['PATH']?.includes(binDir)) {
|
|
16
|
+
gitEnv['PATH'] = `${binDir}:${gitEnv['PATH'] || ''}`;
|
|
17
|
+
}
|
|
15
18
|
}
|
|
16
19
|
function gitExec(command, options) {
|
|
17
20
|
return execAsync(command, { ...options, env: gitEnv });
|