This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 8051b56839f Optimize git clone with shallow copy
8051b56839f is described below

commit 8051b56839f712a94a49ef85592640f2c55c9e76
Author: James Fredley <[email protected]>
AuthorDate: Mon Oct 6 18:04:19 2025 -0400

    Optimize git clone with shallow copy
    
    Change git clone to use --depth 1 for shallow clone
---
 publish.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/publish.sh b/publish.sh
index e1c15301495..2f298d79407 100755
--- a/publish.sh
+++ b/publish.sh
@@ -27,7 +27,7 @@ if [[ $EXIT_STATUS -ne 0 ]]; then
     exit $EXIT_STATUS
 fi
 
-git clone https://${GH_TOKEN}@github.com/${GITHUB_SLUG}.git -b ${GH_BRANCH} 
${GH_BRANCH} --single-branch > /dev/null
+git clone https://${GH_TOKEN}@github.com/${GITHUB_SLUG}.git -b ${GH_BRANCH} 
${GH_BRANCH} --single-branch --depth 1 > /dev/null
 cd ${GH_BRANCH}
 cp -rv ../build/dist/* .
 if git diff --quiet; then

Reply via email to