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

Fix wrong git command flag

I could not find documentation on a `--head` flag, but there is a `--heads` flag which does the same thing.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mark Drobnak 2018-07-27 23:20:59 -04:00 committed by Mcat12
parent a44096a26d
commit 47b56d6123
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

View File

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