projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675653c
)
version string: force git abbrev size to 8 chars
author
href
<href@random.sh>
Sat, 24 Nov 2018 13:38:34 +0000
(14:38 +0100)
committer
href
<href@random.sh>
Sat, 24 Nov 2018 13:38:34 +0000
(14:38 +0100)
Fixes #389
Older git versions defaults to 7 chars.
mix.exs
patch
|
blob
|
history
diff --git
a/mix.exs
b/mix.exs
index 865ead43b1ad5eae7ef075e698d229ac92c86269..9ffcf5928771a59f609b210592acae7f98015aef 100644
(file)
--- a/
mix.exs
+++ b/
mix.exs
@@
-95,7
+95,7
@@
defmodule Pleroma.Mixfile 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))}