mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
* fix(git): reduce queries and preserve data across execution hosts * fix(ci): exercise pinned Git and serialize mobile dependency entrypoints * fix(relay): preserve fresh diff retries after hung shared reads * test(git): wait for fetch barrier before canceling preparation * fix(i18n): describe index-preserving discard in every locale * fix(git): retain clone diagnostics and allow WSL policy startup * test(git): refresh default-base and branch-safety fixtures
7 lines
271 B
TypeScript
7 lines
271 B
TypeScript
export function encodeGitPathspecs(pathspecs: readonly string[]): string {
|
|
if (pathspecs.some((pathspec) => pathspec.includes('\0'))) {
|
|
throw new Error('Git pathspecs cannot contain NUL bytes')
|
|
}
|
|
return pathspecs.length > 0 ? `${pathspecs.join('\0')}\0` : ''
|
|
}
|