From 2d7b2ccc106b0782d260f3cc73f6c64892596c4d Mon Sep 17 00:00:00 2001 From: Eti Zaguri Date: Mon, 16 Sep 2024 17:14:08 +0300 Subject: [PATCH] feat: add REVISION to git fetch cmd (#86) --- service.yaml | 2 +- start.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/service.yaml b/service.yaml index efcf655..1727721 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 10.1.29 +version: 10.1.30 diff --git a/start.sh b/start.sh index 2e18b79..4ebbeac 100644 --- a/start.sh +++ b/start.sh @@ -203,8 +203,8 @@ if [ -d "$CLONE_DIR" ]; then echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}, skipping tags" git_retry git fetch origin ${REVISION:+$REVISION} --no-tags ${DEPTH:+ --depth=$DEPTH} else - echo "Fetching updates from origin" - git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH} + echo "Fetching updates from origin${DEPTH:+ with depth $DEPTH}" + git_retry git fetch origin ${REVISION:+$REVISION} --tags --prune "+refs/tags/*:refs/tags/*" ${DEPTH:+ --depth=$DEPTH} fi git remote set-head origin --auto @@ -233,7 +233,7 @@ if [ -d "$CLONE_DIR" ]; then if [ -n "$REVISION" ]; then if [ -n "$DEPTH" ]; then git_retry git remote set-branches origin "*" - git_retry git origin $REVISION fetch --depth=$DEPTH + git_retry git fetch origin $REVISION --depth=$DEPTH fi git_checkout fi