Skip to content

Commit

Permalink
git-r3.eclass: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Nov 29, 2015
1 parent d9d7821 commit 6204e4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eclass/git-r3.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,9 @@ git-r3_peek_remote_ref() {
for r in "${repos[@]}"; do
einfo "Peeking \e[1m${remote_ref}\e[22m on \e[1m${r}\e[22m ..." >&2

local is_branch lookup_ref
local lookup_ref
if [[ ${remote_ref} == refs/heads/* || ${remote_ref} == HEAD ]]
then
is_branch=1
lookup_ref=${remote_ref}
else
# ls-remote by commit is going to fail anyway,
Expand Down

0 comments on commit 6204e4f

Please sign in to comment.