Commit 5689e1df by John Jarvis

just output all rc branch names as text instead of json

parent 225301ec
......@@ -62,7 +62,9 @@ fi
$noop cd "/var/tmp/$repo_basename"
if [[ -z $noop ]]; then
git branch -a | grep "$filter" | sort -r | head | python -c 'import sys, json; print json.dumps([line.strip() for line in sys.stdin])'
for branch in $(git branch -a | grep "$filter" | sort -r | tr -d ' '); do
echo "origin/${branch}"
done
else
echo "Would have checked for branches using filter $filter"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment