From 47b56d612310a2bf364e9049e9c134730873d97b Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Fri, 27 Jul 2018 23:20:59 -0400 Subject: [PATCH] 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 --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 79e8e1ae..c7158435 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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 }