mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-26 00:42:46 +00:00
ignore set-head errors
This commit is contained in:
parent
2dced2260d
commit
b095caeec0
|
|
@ -16,7 +16,7 @@ function update_font_git() {
|
|||
echo "==== SYNC $repo_dir START ===="
|
||||
git remote set-url origin "$UPSTREAM"
|
||||
/usr/bin/timeout -s INT 3600 git remote -v update -p
|
||||
git remote set-head origin --auto
|
||||
git remote set-head origin --auto || true
|
||||
objs=$(find objects -type f | wc -l)
|
||||
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ function update_cocoapods_git() {
|
|||
echo "==== SYNC $repo_dir START ===="
|
||||
git remote set-url origin "$UPSTREAM"
|
||||
/usr/bin/timeout -s INT 3600 git remote -v update -p
|
||||
git remote set-head origin --auto
|
||||
git remote set-head origin --auto || true
|
||||
objs=$(find objects -type f | wc -l)
|
||||
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||
|
|
|
|||
Loading…
Reference in New Issue