From 53cf71430f9d47a70c4fa01b71b38f8cd46bd24a Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 31 Aug 2016 19:07:06 -0700 Subject: [PATCH] build(publish): shallow fetch to improve perfs (depth=1) --- scripts/publish/publish-build-artifacts.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/publish/publish-build-artifacts.sh b/scripts/publish/publish-build-artifacts.sh index b0d4d04669..8f9ad5ebfe 100755 --- a/scripts/publish/publish-build-artifacts.sh +++ b/scripts/publish/publish-build-artifacts.sh @@ -18,7 +18,7 @@ function publishRepo { cd $REPO_DIR && \ git init && \ git remote add origin $REPO_URL && \ - git fetch origin master && \ + git fetch origin master --depth=1 && \ git checkout origin/master && \ git checkout -b master ) @@ -49,9 +49,8 @@ function publishRepo { git config user.email "${COMMITTER_USER_EMAIL}" && \ git add --all && \ git commit -m "${COMMIT_MSG}" && \ - git push origin master && \ git tag "${BUILD_VER}" && \ - git push origin --tags --force + git push origin master --tags --force ) }