diff --git a/tools/release/build_release.sh b/tools/release/build_release.sh index 6657962ade..4cca754a08 100755 --- a/tools/release/build_release.sh +++ b/tools/release/build_release.sh @@ -94,6 +94,7 @@ REFS=() for branch in ${RELEASE_BRANCH//,/ }; do REFS+=("$BUILD_BRANCH:$branch") done -git push -f origin "${REFS[@]}" +# uploading the larger pack is faster than spending CPU to optimize it +git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin "${REFS[@]}" echo "[-] done T=$SECONDS" diff --git a/tools/release/build_stripped.sh b/tools/release/build_stripped.sh index 0e957c9212..6c1ba4e097 100755 --- a/tools/release/build_stripped.sh +++ b/tools/release/build_stripped.sh @@ -83,7 +83,8 @@ fi if [ ! -z "$BRANCH" ]; then echo "[-] Pushing to $BRANCH T=$SECONDS" - git push -f origin tmp:$BRANCH + # uploading the larger pack is faster than spending CPU to optimize it + git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin tmp:$BRANCH fi echo "[-] done T=$SECONDS, ready at $TARGET_DIR"