mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
tools: Don't display release candidate as forks.
This commit is contained in:
@@ -5,7 +5,7 @@ cd "$(dirname "$0")/.."
|
||||
remote="$(git config zulip.zulipRemote)" || remote=upstream
|
||||
{
|
||||
git describe --always --tags --match='[0-9]*'
|
||||
branches="$(git for-each-ref --format='%(objectname)' "refs/remotes/$remote/main" "refs/remotes/$remote/*.x")"
|
||||
branches="$(git for-each-ref --format='%(objectname)' "refs/remotes/$remote/main" "refs/remotes/$remote/*.x" "refs/remotes/$remote/*-branch")"
|
||||
mapfile -t branches <<<"$branches"
|
||||
if merge_base="$(git merge-base -- HEAD "${branches[@]}")"; then
|
||||
git describe --always --tags --match='[0-9]*' -- "$merge_base"
|
||||
|
Reference in New Issue
Block a user