From: Chris Koeritz Date: Fri, 10 Nov 2017 01:42:27 +0000 (-0500) Subject: closer X-Git-Tag: 2.140.90~2^2~6 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=64d40788e8698d4f774b2e28442d5ce8a22699ec;p=feisty_meow.git closer --- 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]}