mirror of https://github.com/zulip/zulip.git
version: Only let `git describe` match tags beginning with a digit.
This will let us use other tags for things like `@zulip/shared` versions. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
99d34e6ade
commit
453919bbc7
|
@ -2,4 +2,4 @@
|
|||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
git describe --tags > zulip-git-version || true
|
||||
git describe --tags --match='[0-9]*' > zulip-git-version || true
|
||||
|
|
|
@ -18,7 +18,7 @@ from version import ZULIP_VERSION
|
|||
def try_git_describe() -> Optional[str]:
|
||||
try: # nocoverage
|
||||
return subprocess.check_output(
|
||||
['git', 'describe', '--tags', '--always', '--dirty', '--long'],
|
||||
['git', 'describe', '--tags', '--match=[0-9]*', '--always', '--dirty', '--long'],
|
||||
stderr=subprocess.PIPE,
|
||||
cwd=os.path.join(os.path.dirname(__file__), '..'),
|
||||
).strip().decode('utf-8')
|
||||
|
|
Loading…
Reference in New Issue