closer
authorChris Koeritz <fred@gruntose.com>
Fri, 10 Nov 2017 01:42:27 +0000 (20:42 -0500)
committerChris Koeritz <fred@gruntose.com>
Fri, 10 Nov 2017 01:42:27 +0000 (20:42 -0500)
scripts/rev_control/version_control.sh

index e7b29b0110ac7a86c512dad134c2fa7c1f44256f..6a13759ce8037894a6061f12eb0099155f0b1f9e 100644 (file)
@@ -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]}