mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Fix update-deps with certain forms of the {tag, ...} type
Sometimes tags like 1.1-3-g3af5478 or d20b53f0 are encountered. The first is the output of 'git describe', and the second is just a regular git SHA. git fetch --tags will not pull these down, so do a full git fetch instead.
This commit is contained in:
parent
ed88055a75
commit
01df43e58a
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ update_source1(AppDir, {git, _Url, {branch, Branch}}) ->
|
||||||
rebar_utils:sh(?FMT("git pull --ff-only --no-rebase -q origin ~s", [Branch]), ShOpts);
|
rebar_utils:sh(?FMT("git pull --ff-only --no-rebase -q origin ~s", [Branch]), ShOpts);
|
||||||
update_source1(AppDir, {git, _Url, {tag, Tag}}) ->
|
update_source1(AppDir, {git, _Url, {tag, Tag}}) ->
|
||||||
ShOpts = [{cd, AppDir}],
|
ShOpts = [{cd, AppDir}],
|
||||||
rebar_utils:sh("git fetch --tags origin", ShOpts),
|
rebar_utils:sh("git fetch origin", ShOpts),
|
||||||
rebar_utils:sh(?FMT("git checkout -q ~s", [Tag]), ShOpts);
|
rebar_utils:sh(?FMT("git checkout -q ~s", [Tag]), ShOpts);
|
||||||
update_source1(AppDir, {git, _Url, Refspec}) ->
|
update_source1(AppDir, {git, _Url, Refspec}) ->
|
||||||
ShOpts = [{cd, AppDir}],
|
ShOpts = [{cd, AppDir}],
|
||||||
|
|
Loading…
Reference in a new issue