浏览代码

git vsn from tag both strip 'v' prefix

pull/1654/head
Tristan Sloughter 7 年前
父节点
当前提交
b383dcc1a9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/rebar_git_resource.erl

+ 3
- 0
src/rebar_git_resource.erl 查看文件

@ -273,6 +273,9 @@ parse_tags(Dir) ->
[{use_stdout, false}, return_on_error, {cd, Dir}]) of
{error, _} ->
{undefined, "0.0.0"};
%% strip the v prefix if it exists like is done in the above match
{ok, [$v | LatestVsn]} ->
{undefined, string:strip(LatestVsn, both, $\n)};
{ok, LatestVsn} ->
{undefined, string:strip(LatestVsn, both, $\n)}
end

正在加载...
取消
保存