mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +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 ===="
|
echo "==== SYNC $repo_dir START ===="
|
||||||
git remote set-url origin "$UPSTREAM"
|
git remote set-url origin "$UPSTREAM"
|
||||||
/usr/bin/timeout -s INT 3600 git remote -v update -p
|
/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=$(find objects -type f | wc -l)
|
||||||
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
|
@ -14,7 +14,7 @@ function update_cocoapods_git() {
|
|||||||
echo "==== SYNC $repo_dir START ===="
|
echo "==== SYNC $repo_dir START ===="
|
||||||
git remote set-url origin "$UPSTREAM"
|
git remote set-url origin "$UPSTREAM"
|
||||||
/usr/bin/timeout -s INT 3600 git remote -v update -p
|
/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=$(find objects -type f | wc -l)
|
||||||
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user