Fix a typo in variable name that makes a variable leak

Closes #232.
This commit is contained in:
Olivier Mengué 2013-11-25 22:37:09 +01:00
parent bc4450e3ec
commit 6da1e9bc6a

View File

@ -835,7 +835,7 @@ _lp_hg_branch_color()
ret="${LP_COLOR_UP}${branch}${has_untracked}${NO_COL}" # nothing to commit or push
fi
else
local has_line
local has_lines
has_lines=$(hg diff --stat 2>/dev/null | tail -n 1 | awk 'FS=" " {printf("+%s/-%s\n", $4, $6)}')
if [[ "$has_commit" -gt "0" ]] ; then
# Changes to commit and commits to push