Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit a54dd53673444fc4227341ecfdd78fb2710b600d 1 parent 147d5e3
Bob Ippolito etrepum authored tuncer committed

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 src/rebar_deps.erl
8 src/rebar_deps.erl
@@ -352,9 +352,9 @@ download_source(AppDir, {hg, Url, Rev}) ->
352 352 [{cd, filename:dirname(AppDir)}]),
353 353 rebar_utils:sh(?FMT("hg update ~s", [Rev]), [{cd, AppDir}]);
354 354 download_source(AppDir, {git, Url}) ->
355   - download_source(AppDir, {git, Url, "HEAD"});
  355 + download_source(AppDir, {git, Url, {branch, "HEAD"}});
356 356 download_source(AppDir, {git, Url, ""}) ->
357   - download_source(AppDir, {git, Url, "HEAD"});
  357 + download_source(AppDir, {git, Url, {branch, "HEAD"}});
358 358 download_source(AppDir, {git, Url, {branch, Branch}}) ->
359 359 ok = filelib:ensure_dir(AppDir),
360 360 rebar_utils:sh(?FMT("git clone -n ~s ~s", [Url, filename:basename(AppDir)]),
@@ -400,9 +400,9 @@ update_source(Dep) ->
400 400 end.
401 401
402 402 update_source(AppDir, {git, Url}) ->
403   - update_source(AppDir, {git, Url, "HEAD"});
  403 + update_source(AppDir, {git, Url, {branch, "HEAD"}});
404 404 update_source(AppDir, {git, Url, ""}) ->
405   - update_source(AppDir, {git, Url, "HEAD"});
  405 + update_source(AppDir, {git, Url, {branch, "HEAD"}});
406 406 update_source(AppDir, {git, _Url, {branch, Branch}}) ->
407 407 ShOpts = [{cd, AppDir}],
408 408 rebar_utils:sh("git fetch origin", ShOpts),

0 comments on commit a54dd53

Please sign in to comment.
Something went wrong with that request. Please try again.