From 45f44c2166d2ef2ec2e05bc85c5aeb96f675a8c7 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 8 Jul 2011 13:58:01 +0200 Subject: [PATCH] Fix {git,Url} support (Reported-by: Garrett Smith) --- src/rebar_deps.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ->