summaryrefslogtreecommitdiff
path: root/src/rebar_git_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_git_resource.erl')
-rw-r--r--src/rebar_git_resource.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl
index 0ca6627..b2db6ca 100644
--- a/src/rebar_git_resource.erl
+++ b/src/rebar_git_resource.erl
@@ -10,6 +10,10 @@
needs_update/2,
make_vsn/2]).
+%% For backward compatibilty
+-export ([ download/3
+ ]).
+
-include("rebar.hrl").
%% Regex used for parsing scp style remote url
@@ -123,6 +127,10 @@ download(TmpDir, AppInfo, State, _) ->
{error, Error}
end.
+%% For backward compatibilty
+download(Dir, AppInfo, State) ->
+ download_(Dir, AppInfo, State).
+
download_(Dir, {git, Url}, State) ->
?WARN("WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected.", []),
download_(Dir, {git, Url, {branch, "master"}}, State);