File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,12 @@ if [[ -n "${CODER_FORCE_VERSION:-}" ]]; then
26
26
exit 0
27
27
fi
28
28
29
- # To make contributing easier, if the upstream isn't coder/coder and there are
30
- # no tags we will fall back to 0.1.0 with devel suffix.
31
- remote_url=$( git remote get-url origin)
29
+ # To make contributing easier, if there are no tags, we'll use a default
30
+ # version.
32
31
tag_list=$( git tag)
33
- if ! [[ ${remote_url} =~ [@/]github.com ]] && ! [[ ${remote_url} =~ [:/]coder/coder( \. git) ? $ ]] && [[ -z ${tag_list} ]]; then
32
+ if [[ -z ${tag_list} ]]; then
34
33
log
35
- log " INFO(version.sh): It appears you've checked out a fork of Coder."
34
+ log " INFO(version.sh): It appears you've checked out a fork or shallow clone of Coder."
36
35
log " INFO(version.sh): By default GitHub does not include tags when forking."
37
36
log " INFO(version.sh): We will use the default version 2.0.0 for this build."
38
37
log " INFO(version.sh): To pull tags from upstream, use the following commands:"
You can’t perform that action at this time.
0 commit comments