소스 검색

only fetch branch needed, remove rebar_vsn_plugins from erlware_commons

pull/381/head
Tristan Sloughter 10 년 전
부모
커밋
d4c7dea735
3개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. +1
    -1
      rebar.config
  2. +1
    -5
      rebar.lock
  3. +1
    -1
      src/rebar_git_resource.erl

+ 1
- 1
rebar.config 파일 보기

@ -46,4 +46,4 @@
]}.
%% Overrides
{overrides, [{override, erlware_commons, [{plugins, []}]}]}.
{overrides, [{override, erlware_commons, [{deps, []}, {plugins, []}]}]}.

+ 1
- 5
rebar.lock 파일 보기

@ -1,8 +1,4 @@
[{<<"rebar_vsn_plugin">>,
{git,"https://github.com/erlware/rebar_vsn_plugin.git",
{ref,"fd40c960c7912193631d948fe962e1162a8d1334"}},
2},
{<<"relx">>,
[{<<"relx">>,
{git,"https://github.com/tsloughter/relx.git",
{ref,"6e0d048d3840464539deddd9d5b53e9f421edee4"}},
0},

+ 1
- 1
src/rebar_git_resource.erl 파일 보기

@ -32,7 +32,7 @@ needs_update(Dir, {git, Url, {tag, Tag}}) ->
not ((Current1 =:= Tag) andalso compare_url(Dir, Url));
needs_update(Dir, {git, Url, {branch, Branch}}) ->
%% Fetch remote so we can check if the branch has changed
{ok, _} = rebar_utils:sh(?FMT("git fetch", []),
{ok, _} = rebar_utils:sh(?FMT("git fetch origin ~s", [Branch]),
[{cd, Dir}]),
%% Check for new commits to origin/Branch
{ok, Current} = rebar_utils:sh(?FMT("git log HEAD..origin/~s --oneline", [Branch]),

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