summaryrefslogtreecommitdiff
path: root/src/rebar_deps.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-07-08 13:58:01 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-07-08 14:04:11 +0200
commit45f44c2166d2ef2ec2e05bc85c5aeb96f675a8c7 (patch)
treec80a43db75c4303f6cf4821d8ba501a7afdb3906 /src/rebar_deps.erl
parent7118ec6612be53b37ddebcd0c3685f128920e4f5 (diff)
Fix {git,Url} support (Reported-by: Garrett Smith)
Diffstat (limited to 'src/rebar_deps.erl')
-rw-r--r--src/rebar_deps.erl6
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 ->