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 2/3] git-r3.eclass: Remove unused variable
Date: Sat, 26 Sep 2015 13:30:09
Message-Id: 1443274139-3860-3-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 | 3 +--
3 1 file changed, 1 insertion(+), 2 deletions(-)
4
5 diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
6 index 9bc385e..eff3fa2 100644
7 --- a/eclass/git-r3.eclass
8 +++ b/eclass/git-r3.eclass
9 @@ -918,10 +918,9 @@ git-r3_peek_remote_ref() {
10 for r in "${repos[@]}"; do
11 einfo "Peeking \e[1m${remote_ref}\e[22m on \e[1m${r}\e[22m ..." >&2
12
13 - local is_branch lookup_ref
14 + local lookup_ref
15 if [[ ${remote_ref} == refs/heads/* || ${remote_ref} == HEAD ]]
16 then
17 - is_branch=1
18 lookup_ref=${remote_ref}
19 else
20 # ls-remote by commit is going to fail anyway,
21 --
22 2.5.3