From: Claudio Cambra Date: Sat, 22 Jun 2024 08:41:40 +0000 (+0800) Subject: Allow setting custom git clone command in mac crafter X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~131 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d8afa2b36b3674d03d33504cbc4a311c46abfc62;p=nextcloud-desktop.git Allow setting custom git clone command in mac crafter Signed-off-by: Claudio Cambra --- diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index c2d5b738c..338298827 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -62,6 +62,9 @@ struct MacCrafter: ParsableCommand { var sparkleDownloadUrl = "https://github.com/sparkle-project/Sparkle/releases/download/1.27.3/Sparkle-1.27.3.tar.xz" + @Option(name: [.long], help: "Git clone command; include options such as depth.") + var gitCloneCommand = "git clone --depth=1" + mutating func run() throws { print("Configuring build tooling.") @@ -97,7 +100,7 @@ struct MacCrafter: ParsableCommand { print("KDE Craft is already cloned.") } else { print("Cloning KDE Craft...") - shell("git clone --depth=1 \(craftMasterGitUrl) \(craftMasterDir)") + shell("\(gitCloneCommand) \(craftMasterGitUrl) \(craftMasterDir)") } print("Configuring Nextcloud Desktop Client blueprints for KDE Craft...")