Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Treat HEAD as a branch to fix regressions caused by 3ef7db5

  • Loading branch information...
commit a54dd53673444fc4227341ecfdd78fb2710b600d 1 parent 147d5e3
@etrepum etrepum authored tuncer committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/rebar_deps.erl
View
8 src/rebar_deps.erl
@@ -352,9 +352,9 @@ download_source(AppDir, {hg, Url, Rev}) ->
[{cd, filename:dirname(AppDir)}]),
rebar_utils:sh(?FMT("hg update ~s", [Rev]), [{cd, AppDir}]);
download_source(AppDir, {git, Url}) ->
- download_source(AppDir, {git, Url, "HEAD"});
+ download_source(AppDir, {git, Url, {branch, "HEAD"}});
download_source(AppDir, {git, Url, ""}) ->
- download_source(AppDir, {git, Url, "HEAD"});
+ download_source(AppDir, {git, Url, {branch, "HEAD"}});
download_source(AppDir, {git, Url, {branch, Branch}}) ->
ok = filelib:ensure_dir(AppDir),
rebar_utils:sh(?FMT("git clone -n ~s ~s", [Url, filename:basename(AppDir)]),
@@ -400,9 +400,9 @@ update_source(Dep) ->
end.
update_source(AppDir, {git, Url}) ->
- update_source(AppDir, {git, Url, "HEAD"});
+ update_source(AppDir, {git, Url, {branch, "HEAD"}});
update_source(AppDir, {git, Url, ""}) ->
- update_source(AppDir, {git, Url, "HEAD"});
+ update_source(AppDir, {git, Url, {branch, "HEAD"}});
update_source(AppDir, {git, _Url, {branch, Branch}}) ->
ShOpts = [{cd, AppDir}],
rebar_utils:sh("git fetch origin", ShOpts),
Please sign in to comment.
Something went wrong with that request. Please try again.