mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
克隆仓库增加 depth
This commit is contained in:
1 parent
b705ad6ee8
commit
9a3e38051d
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -315,7 +315,7 @@ git_clone_scripts() {
|
||||
echo -e "开始克隆仓库 $url 到 $dir\n"
|
||||
|
||||
set_proxy "$proxy"
|
||||
git clone $part_cmd $url $dir
|
||||
git clone --depth=1 $part_cmd $url $dir
|
||||
exit_status=$?
|
||||
unset_proxy
|
||||
}
|
||||
@@ -329,8 +329,8 @@ git_pull_scripts() {
|
||||
echo -e "开始更新仓库:$dir_work"
|
||||
|
||||
set_proxy "$proxy"
|
||||
git fetch --all
|
||||
git pull 1>/dev/null
|
||||
git fetch --depth=1 --all
|
||||
git pull --depth=1 1>/dev/null
|
||||
exit_status=$?
|
||||
unset_proxy
|
||||
|
||||
|
||||
Reference in new issue
Block a user