From a4bf16bffac3ccc494a16fbed2104c44a4e1bed0 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:37:26 +0000 Subject: [PATCH] Remove link LFS step in setup-project. (#1987) --- Tools/Sources/SetupProject.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Tools/Sources/SetupProject.swift b/Tools/Sources/SetupProject.swift index 19c91ab89..728078e08 100644 --- a/Tools/Sources/SetupProject.swift +++ b/Tools/Sources/SetupProject.swift @@ -11,7 +11,6 @@ struct SetupProject: ParsableCommand { try setupGitHooks() try brewBundleInstall() try mintPackagesInstall() - try linkGitLFS() try xcodegen() } @@ -29,19 +28,6 @@ struct SetupProject: ParsableCommand { func mintPackagesInstall() throws { try Utilities.zsh("mint install Asana/locheck") } - - func linkGitLFS() throws { - guard let gitPath = try Utilities.zsh("git --exec-path")?.replacingOccurrences(of: "\n", with: "") else { return } - - let lfsPath = URL(fileURLWithPath: gitPath).appendingPathComponent("git-lfs").path - - guard !FileManager.default.fileExists(atPath: lfsPath) else { - print("Git LFS already linked.") - return - } - - try Utilities.zsh("ln -s \"$(which git-lfs)\" \"\(lfsPath)\"") - } func xcodegen() throws { try Utilities.zsh("xcodegen")