From 64d40788e8698d4f774b2e28442d5ce8a22699ec Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 9 Nov 2017 20:42:27 -0500 Subject: [PATCH] closer --- scripts/rev_control/version_control.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index e7b29b01..6a13759c 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -278,13 +278,20 @@ function do_update() # from very helpful page: # https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches - git branch -r | grep -v '\->' | - while read remote; do - git branch --track "${remote#origin/}" "$remote" - # ensure we notice a failure when adding tracking. - retval+=$? - done - retval+=${PIPESTATUS[0]}$? + + for remote in $( git branch -r | grep -v -- '->' ); do + git branch --track ${remote#origin/} $remote + retval+=$? + done + +#tiny bit hosed +# git branch -r | grep -v -- '->' | +# while read remote; do +# git branch --track "${remote#origin/}" "$remote" +# # ensure we notice a failure when adding tracking. +# retval+=$? +# done +# retval+=${PIPESTATUS[0]}$? git fetch --all 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER retval+=${PIPESTATUS[0]} -- 2.34.1