소스 검색

Merge pull request #606 from ferd/more-git-cding

Fix missing 'cd' that depended on cwd changes
pull/611/head
Tristan Sloughter 9 년 전
부모
커밋
83fa49ed3c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      src/rebar_git_resource.erl

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

@ -133,9 +133,10 @@ collect_default_refcount(Dir) ->
{ok, RawCount} =
case Tag of
undefined ->
AbortMsg2 = "Getting rev-list of git depedency failed in " ++ rebar_dir:get_cwd(),
AbortMsg2 = "Getting rev-list of git depedency failed in " ++ Dir,
{ok, PatchLines} = rebar_utils:sh("git rev-list HEAD",
[{use_stdout, false},
{cd, Dir},
{debug_abort_on_error, AbortMsg2}]),
rebar_utils:line_count(PatchLines);
_ ->
@ -164,6 +165,7 @@ get_patch_count(Dir, RawRef) ->
[Ref]),
{ok, PatchLines} = rebar_utils:sh(Cmd,
[{use_stdout, false},
{cd, Dir},
{debug_abort_on_error, AbortMsg}]),
rebar_utils:line_count(PatchLines).

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