aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_config.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rlx_config.erl')
-rw-r--r--src/rlx_config.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl
index 0ee3543..b2de094 100644
--- a/src/rlx_config.erl
+++ b/src/rlx_config.erl
@@ -295,9 +295,10 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
end.
parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" ->
- parse_vsn({semver, "v"});
-parse_vsn({semver, Prefix}) ->
- {ok, V} = ec_git_vsn:vsn({Prefix}),
+ {ok, V} = ec_git_vsn:vsn([]),
+ V;
+parse_vsn({semver, _}) ->
+ {ok, V} = ec_git_vsn:vsn([]),
V;
parse_vsn({cmd, Command}) ->
V = os:cmd(Command),