Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add REVISION to git fetch cmd #86

Merged
merged 36 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2b7ca7a
add --depth=$DEPTH
eti-codefresh Aug 26, 2024
ea61ac2
bump
eti-codefresh Aug 26, 2024
59fd3e7
test2
eti-codefresh Aug 28, 2024
ccebd4a
test3
eti-codefresh Aug 29, 2024
dd7febe
test4
eti-codefresh Aug 29, 2024
ed4e4e8
test5
eti-codefresh Aug 29, 2024
47189ea
test6
eti-codefresh Aug 29, 2024
fd13aea
test7
eti-codefresh Aug 29, 2024
9bd1282
test8
eti-codefresh Aug 29, 2024
a4fdd44
test9
eti-codefresh Aug 29, 2024
bd7264a
test10
eti-codefresh Aug 29, 2024
1930769
test11
eti-codefresh Aug 29, 2024
209d664
test12
eti-codefresh Aug 29, 2024
ce1ec84
test13
eti-codefresh Aug 29, 2024
f181fb8
lint
eti-codefresh Sep 1, 2024
7f8ed9a
add SKIP_TAGS_ON_UPDATE
eti-codefresh Sep 2, 2024
773e7d4
update cmd
eti-codefresh Sep 2, 2024
1359bda
update cmd with depth
eti-codefresh Sep 2, 2024
65165f3
update cmd with depth
eti-codefresh Sep 2, 2024
a83ee5d
${REVISION:+$REVISION}
eti-codefresh Sep 2, 2024
1b87da4
lint
eti-codefresh Sep 2, 2024
fa6f3f0
add comment
eti-codefresh Sep 2, 2024
b0041e2
git fetch --tags
eti-codefresh Sep 2, 2024
5124cd8
git fetch --tags
eti-codefresh Sep 2, 2024
f7fea10
git_retry git fetch --tags
eti-codefresh Sep 2, 2024
9f1ea54
git_retry git fetch origin --tags --prune "+refs/tags/*:refs/tags/*"
eti-codefresh Sep 2, 2024
88eb361
remove --prune
eti-codefresh Sep 3, 2024
f02cc87
add ${DEPTH:+ --depth=$DEPTH}
eti-codefresh Sep 3, 2024
d3555be
add logs
eti-codefresh Sep 10, 2024
1bfb56b
Merge branch 'master' into CR-25021-1
eti-codefresh Sep 10, 2024
c986adc
bump
eti-codefresh Sep 10, 2024
756c08e
lint
eti-codefresh Sep 10, 2024
45f222b
add more logs
eti-codefresh Sep 10, 2024
25b7ece
test with REVISION
eti-codefresh Sep 15, 2024
b0755ad
fix fetch cmd
eti-codefresh Sep 16, 2024
319d2e5
Empty commit
eti-codefresh Sep 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.29
version: 10.1.30
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading