1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Merge pull request #2311 from pi-hole/fix/git-head-flag

Fix wrong git command flag
This commit is contained in:
Dan Schaper 2018-07-28 10:48:29 -07:00 committed by GitHub
commit 1844bf17a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}