diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-07-08 13:58:01 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-07-08 14:04:11 +0200 |
commit | 45f44c2166d2ef2ec2e05bc85c5aeb96f675a8c7 (patch) | |
tree | c80a43db75c4303f6cf4821d8ba501a7afdb3906 | |
parent | 7118ec6612be53b37ddebcd0c3685f128920e4f5 (diff) |
Fix {git,Url} support (Reported-by: Garrett Smith)
-rw-r--r-- | src/rebar_deps.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index fe73ca5..ac6add8 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -411,7 +411,11 @@ update_source(AppDir, {bzr, _Url, Rev}) -> %% Source helper functions %% =================================================================== -source_engine_avail({Name, _, _}=Source) +source_engine_avail(Source) -> + Name = element(1, Source), + source_engine_avail(Name, Source). + +source_engine_avail(Name, Source) when Name == hg; Name == git; Name == svn; Name == bzr -> case scm_client_vsn(Name) >= required_scm_client_vsn(Name) of true -> |