Skip to content

Commit 6793fae

Browse files
committed
fix: make loadFromGit non-interactive
loadFromGit should be sufficiently authenticated and if it isn't it's not expected to get interactive input. Inform git not to wait for interactive action. This also resolves an issue in the tests where "should throw error if repository is valid URL but not a git repository" test times out waiting for a username.
1 parent dc208cd commit 6793fae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config/ConfigLoader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ export class ConfigLoader extends EventEmitter {
316316
const execOptions = {
317317
cwd: process.cwd(),
318318
env: {
319+
// dont wait for credentials; the command should be sufficiently authed
320+
GIT_TERMINAL_PROMPT: 0,
319321
...process.env,
320322
...(source.auth?.type === 'ssh'
321323
? {

0 commit comments

Comments
 (0)