Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 1/3] git-r3.eclass: Improve the comments a bit
Date: Sat, 26 Sep 2015 13:30:21
Message-Id: 1443274139-3860-2-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] git-r3.eclass: Slight cleanup and support for any ref by "Michał Górny"
1 ---
2 eclass/git-r3.eclass | 8 ++++----
3 1 file changed, 4 insertions(+), 4 deletions(-)
4
5 diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
6 index 0ee70bc..9bc385e 100644
7 --- a/eclass/git-r3.eclass
8 +++ b/eclass/git-r3.eclass
9 @@ -585,7 +585,7 @@ git-r3_fetch() {
10 # regular branch
11 fetch_l=${remote_ref}
12 else
13 - # tag or commit...
14 + # tag or commit id...
15 # let ls-remote figure it out
16 local tagref=$(git ls-remote "${r}" "refs/tags/${remote_ref}")
17
18 @@ -594,8 +594,8 @@ git-r3_fetch() {
19 # tag
20 fetch_l=refs/tags/${remote_ref}
21 else
22 - # commit
23 - # so we need to fetch the branch
24 + # commit id
25 + # so we need to fetch the whole branch
26 if [[ ${branch} ]]; then
27 fetch_l=${branch}
28 else
29 @@ -697,7 +697,7 @@ git-r3_fetch() {
30 [[ ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI"
31
32 # submodules can reference commits in any branch
33 - # always use the 'clone' mode to accomodate that, bug #503332
34 + # always use the 'mirror' mode to accomodate that, bug #503332
35 local EGIT_CLONE_TYPE=mirror
36
37 # recursively fetch submodules
38 --
39 2.5.3