diff options
author | Joe DeVivo <[email protected]> | 2015-07-10 10:19:11 -0700 |
---|---|---|
committer | Joe DeVivo <[email protected]> | 2015-07-10 10:28:06 -0700 |
commit | 1c9c4d1d772fcbf4fdad09eea08f0a7e01c0c0f4 (patch) | |
tree | 76987099c4c280a80ea9ea9f6fdbdff9f53dc73f /src | |
parent | f9eac2d57e934da6c1765d47a66dd69fbfaca753 (diff) | |
download | relx-1c9c4d1d772fcbf4fdad09eea08f0a7e01c0c0f4.tar.gz relx-1c9c4d1d772fcbf4fdad09eea08f0a7e01c0c0f4.tar.bz2 relx-1c9c4d1d772fcbf4fdad09eea08f0a7e01c0c0f4.zip |
Now you can specify {semver, "version"}
where "version" is the prefix you use for tagging versions in git
Diffstat (limited to 'src')
-rw-r--r-- | src/rlx_config.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl index 33e8f27..1f441ed 100644 --- a/src/rlx_config.erl +++ b/src/rlx_config.erl @@ -295,7 +295,9 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) -> end. parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" -> - {ok, V} = ec_git_vsn:vsn([]), + parse_vsn({semver, "v"}); +parse_vsn({semver, Prefix}) -> + {ok, V} = ec_git_vsn:vsn({Prefix}), V; parse_vsn(Vsn) -> Vsn. |