Skip to content

Commit eb7d152

Browse files
cuisongliuzjy365
andauthored
fix(template): allow template fallback to local cache when git fails (#6155) (#6156)
(cherry picked from commit 8791435) Co-authored-by: jingyang <[email protected]>
1 parent 31fa34d commit eb7d152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/providers/template/src/services/backend/template-repo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export async function updateRepo() {
8585

8686
console.log('git operation:', result);
8787
} catch (error) {
88-
console.log('git operation timed out: \n', error);
89-
throw new Error('Git operation failed: ');
88+
// Note: git operation timeout should not block the process. Just log the error, do not throw.
89+
console.log('git operation timed out (non-blocking): \n', error);
9090
}
9191

9292
if (!fs.existsSync(targetPath)) {

0 commit comments

Comments
 (0)