1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Fixed locale issue, do not parse for string.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2018-07-26 05:30:05 -07:00
parent 384b588a2d
commit 46a366635c
No known key found for this signature in database
GPG Key ID: B4FF14C01CC08DC0

View File

@ -2041,7 +2041,7 @@ get_available_branches() {
cd "${directory}" || return 1 cd "${directory}" || return 1
# Get reachable remote branches, but store STDERR as STDOUT variable # Get reachable remote branches, but store STDERR as STDOUT variable
output=$( { git remote show origin | grep 'tracked' | sed 's/tracked//;s/ //g'; } 2>&1 ) output=$( { git ls-remote --head --quiet | cut -d'/' -f3- -; } 2>&1 )
echo "$output" echo "$output"
return return
} }