mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
Fix harness crash (#25266)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
@@ -17,5 +17,12 @@ export function resolvePath(p: string): string {
|
||||
} else if (p === '~' || p.startsWith('~/')) {
|
||||
expandedPath = homedir() + p.substring(1);
|
||||
}
|
||||
return path.normalize(expandedPath);
|
||||
try {
|
||||
return path.normalize(expandedPath);
|
||||
} catch (err: unknown) {
|
||||
if (err instanceof Error && 'code' in err && err.code === 'ENAMETOOLONG') {
|
||||
return expandedPath;
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user