Skip to content

Commit c360518

Browse files
authored
Fix: tag_commit on fresh repo with no tags (#261)
1 parent 72f3a54 commit c360518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ then
113113
fi
114114

115115
# get current commit hash for tag
116-
tag_commit=$(git rev-list -n 1 "$tag")
116+
tag_commit=$(git rev-list -n 1 "$tag" || true )
117117
# get current commit hash
118118
commit=$(git rev-parse HEAD)
119119
# skip if there are no new commits for non-pre_release

0 commit comments

Comments
 (0)