소스 검색

Revert 15b7798e4 and restore old git-describe call

Restore previous 'git describe' behaviour as discussed here:
http://lists.basho.com/pipermail/rebar_lists.basho.com/2012-September/001713.html
pull/3/head
Tuncer Ayaz 12 년 전
부모
커밋
1b52a597c4
1개의 변경된 파일1개의 추가작업 그리고 11개의 파일을 삭제
  1. +1
    -11
      src/rebar_utils.erl

+ 1
- 11
src/rebar_utils.erl 파일 보기

@ -475,17 +475,7 @@ vcs_vsn_1(Vcs, Dir) ->
end
end.
vcs_vsn_cmd(git) ->
%% git describe the last commit that touched CWD
%% required for correct versioning of apps in subdirs, such as apps/app1
case os:type() of
{win32,nt} ->
"FOR /F \"usebackq tokens=* delims=\" %i in "
"(`git log -n 1 \"--pretty=format:%h\" .`) do "
"@git describe --always --tags %i";
_ ->
"git describe --always --tags `git log -n 1 --pretty=format:%h .`"
end;
vcs_vsn_cmd(git) -> "git describe --always --tags";
vcs_vsn_cmd(hg) -> "hg identify -i";
vcs_vsn_cmd(bzr) -> "bzr revno";
vcs_vsn_cmd(svn) -> "svnversion";

불러오는 중...
취소
저장