Commit 41ff86ca authored by kaniini's avatar kaniini
Browse files

Merge branch 'fix/version-string-force-git-abbrev-size' into 'develop'

fix: version string: force git abbrev size to 8 chars

Closes #389

See merge request !472
parents b9bc8309 f70b20e4
Pipeline #4732 passed with stages
in 7 minutes and 35 seconds
......@@ -95,7 +95,7 @@ defp version(version) do
{git_tag, git_pre_release} =
with {tag, 0} <- System.cmd("git", ["describe", "--tags", "--abbrev=0"]),
tag = String.trim(tag),
{describe, 0} <- System.cmd("git", ["describe", "--tags"]),
{describe, 0} <- System.cmd("git", ["describe", "--tags", "--abbrev=8"]),
describe = String.trim(describe),
ahead <- String.replace(describe, tag, "") do
{String.replace_prefix(tag, "v", ""), if(ahead != "", do: String.trim(ahead))}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment