fix: suppress non-git remote lookup noise

This commit is contained in:
Bohdan Triapitsyn
2026-05-17 23:36:17 +03:00
parent 2290cf4b59
commit 622927c34c
+3
View File
@@ -3129,6 +3129,9 @@ export async function getRemotes(directory) {
pushUrl: remote.refs.push
}));
} catch (error) {
if (isNotGitRepositoryError(error)) {
return [];
}
console.error('Failed to get remotes:', error);
throw error;
}