@@ -16,7 +16,7 @@
step1: 克隆到本地
-`git clone https://github.com/Mark24Code/rime-auto-deploy.git --branch v1.0.0`
+`git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch v1.0.0`
step2: 执行部署脚本
@@ -25,7 +25,7 @@ module RimeDeploy
def call
puts intro
system(
- "git clone #{Config::RIME_CONFIG_REPO} #{Config::DebianLinux::ConfigPath}"
+ "git clone --depth=1 #{Config::RIME_CONFIG_REPO} #{Config::DebianLinux::ConfigPath}"
)
sleep 1
return :next
@@ -24,7 +24,7 @@ module RimeDeploy
- "git clone #{Config::RIME_CONFIG_REPO} #{Config::MacOS::ConfigPath}"
+ "git clone --depth=1 #{Config::RIME_CONFIG_REPO} #{Config::MacOS::ConfigPath}"