Skip to content

Commit 149d789

Browse files
committed
ignore vcs directories
1 parent 0d5a68e commit 149d789

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
102102
try await fileSync.createSession(
103103
arg: .init(
104104
alpha: .init(path: localPath, protocolKind: .local),
105-
beta: .init(path: remotePath, protocolKind: .ssh(host: remotePath))
105+
beta: .init(path: remotePath, protocolKind: .ssh(host: remoteHostname))
106106
)
107107
)
108108
} catch {

Coder-Desktop/VPNLib/FileSync/FileSyncManagement.swift

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ public extension MutagenDaemon {
3333
req.specification = .with { spec in
3434
spec.alpha = arg.alpha.mutagenURL
3535
spec.beta = arg.beta.mutagenURL
36-
// TODO: Ingest a config from somewhere
37-
spec.configuration = Synchronization_Configuration()
36+
// TODO: Ingest configs from somewhere
37+
spec.configuration = .with {
38+
// ALWAYS ignore VCS directories for now
39+
// https://mutagen.io/documentation/synchronization/version-control-systems/
40+
$0.ignoreVcsmode = .ignore
41+
}
3842
spec.configurationAlpha = Synchronization_Configuration()
3943
spec.configurationBeta = Synchronization_Configuration()
4044
}

0 commit comments

Comments
 (0)