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.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/01df43e5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/01df43e5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/01df43e5
Branch: refs/heads/import
Commit: 01df43e58adbb3885a530eda098231ff4c957064
Parents: ed88055
Author: Andrew Thompson <[email protected]>
Authored: Tue Oct 15 17:37:40 2013 -0400
Committer: Andrew Thompson <[email protected]>
Committed: Wed Oct 16 12:43:01 2013 -0400
----------------------------------------------------------------------
src/rebar_deps.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/01df43e5/src/rebar_deps.erl
----------------------------------------------------------------------
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index 5e4f482..5e69709 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -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);
update_source1(AppDir, {git, _Url, {tag, Tag}}) ->
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);
update_source1(AppDir, {git, _Url, Refspec}) ->
ShOpts = [{cd, AppDir}],