Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

558 B
Raw Blame
import { parseWslUncPath } from './wsl-paths'

const WINDOWS_LONG_PATH_GIT_ARGS = ['-c', 'core.longpaths=true'] as const

/** Enable core.longpaths per invocation without changing user config (supported since Git 1.9).
 * Use cwd, not configured distro: Windows paths may still use git.exe; only real WSL UNC paths opt out. */
export function windowsLongPathGitArgs(
  cwd: string,
  platform: NodeJS.Platform = process.platform
): string[] {
  if (platform !== 'win32' || parseWslUncPath(cwd)) {
    return []
  }
  return [...WINDOWS_LONG_PATH_GIT_ARGS]
}