Skip to content

Commit 3273a66

Browse files
committed
fix: cannot input passphrase when running git commands
1 parent 5c877f5 commit 3273a66

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

packages/cli/src/__tests__/util/git.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ describe('Git Utilities', () => {
303303
await pullRepository(mockRepoPath);
304304
});
305305

306-
it('should have 30 second timeout', async () => {
306+
it('should have 60 second timeout for git pull', async () => {
307307
mockedExec.mockImplementation((command: string, options: any, callback?: any) => {
308308
expect(options.timeout).toBe(60000);
309309
if (callback) {

packages/cli/src/lib/SkillManager.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -316,16 +316,15 @@ export class SkillManager {
316316
const results: UpdateResult[] = [];
317317

318318
for (const registry of registries) {
319-
const spinner = ui.spinner(`Updating ${registry.id}...`);
320-
spinner.start();
319+
ui.info(`Updating ${registry.id}...`);
321320
const result = await this.updateRegistry(registry.path, registry.id);
322321
results.push(result);
323322
if (result.status === 'success') {
324-
spinner.succeed(`${registry.id} updated`);
323+
ui.success(`${registry.id} updated`);
325324
} else if (result.status === 'skipped') {
326-
spinner.warn(`${registry.id} skipped (${result.message})`);
325+
ui.warning(`${registry.id} skipped (${result.message})`);
327326
} else {
328-
spinner.fail(`${registry.id} failed`);
327+
ui.error(`${registry.id} failed`);
329328
}
330329
}
331330

@@ -413,10 +412,9 @@ export class SkillManager {
413412

414413
if (await fs.pathExists(repoPath)) {
415414
if (await isGitRepository(repoPath)) {
416-
const spinner = ui.spinner(`Updating cached repository ${registryId}...`);
417-
spinner.start();
415+
ui.info(`Updating cached repository ${registryId}...`);
418416
await pullRepository(repoPath);
419-
spinner.succeed(`Cached repository ${registryId} updated`);
417+
ui.success(`Cached repository ${registryId} updated`);
420418
} else {
421419
ui.warning(`Cached registry ${registryId} is not a git repository, using as-is.`);
422420
}
@@ -428,12 +426,11 @@ export class SkillManager {
428426
throw new Error(`Registry "${registryId}" is not cached and has no configured URL.`);
429427
}
430428

431-
const spinner = ui.spinner(`Cloning ${registryId} (this may take a moment)...`);
432-
spinner.start();
429+
ui.info(`Cloning ${registryId} (this may take a moment)...`);
433430
await fs.ensureDir(path.dirname(repoPath));
434431

435432
const result = await cloneRepository(SKILL_CACHE_DIR, registryId, gitUrl);
436-
spinner.succeed(`${registryId} cloned successfully`);
433+
ui.success(`${registryId} cloned successfully`);
437434
return result;
438435
}
439436

0 commit comments

Comments
 (0)