瀏覽代碼

update: git clone add --depth=1

Mark24 2 年之前
父節點
當前提交
941ff5403d
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      README.md
  2. 1 1
      os/DebianLinux.rb
  3. 1 1
      os/MacOS.rb

+ 1 - 1
README.md

@@ -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: 执行部署脚本
 

+ 1 - 1
os/DebianLinux.rb

@@ -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

+ 1 - 1
os/MacOS.rb

@@ -24,7 +24,7 @@ module RimeDeploy
       def call
         puts intro
         system(
-          "git clone #{Config::RIME_CONFIG_REPO} #{Config::MacOS::ConfigPath}"
+          "git clone --depth=1 #{Config::RIME_CONFIG_REPO} #{Config::MacOS::ConfigPath}"
         )
         sleep 1
         return :next