diff --git a/Sources/SourceControl/GitRepository.swift b/Sources/SourceControl/GitRepository.swift index ec46afe12c2..753ab175f3c 100644 --- a/Sources/SourceControl/GitRepository.swift +++ b/Sources/SourceControl/GitRepository.swift @@ -163,6 +163,9 @@ public struct GitRepositoryProvider: RepositoryProvider, Cancellable { "-c", "core.symlinks=true", // Disable fsmonitor to avoid spawning a monitor process. "-c", "core.fsmonitor=false", + // Enable long path support on Windows as otherwise we are limited + // to 261 characters in the complete path. + "-c", "core.longpaths=true", ] + options + [origin, destination] try self.callGit(