Ver Fonte

update: git clone add --depth=1

Mark24 há 2 anos atrás
pai
commit
941ff5403d
3 ficheiros alterados com 3 adições e 3 exclusões
  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