Guest User

Untitled

a guest
Nov 23rd, 2014
197
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2. REMOTE="${1-review}"
  3. git ls-remote "${REMOTE}" | grep /changes/ | awk '{print $2;}' | while read REF
  4. do
  5. git fetch "${REMOTE}" "${REF}"
  6. git branch `echo "${REF}" | sed 's#refs/changes/../#change/#'`
  7. # git checkout `echo "${REF}" | sed 's#refs/changes/../#change/#'`
  8. # git rebase
  9. # git push origin `echo "${REF}" | sed 's#refs/changes/../#change/#'`
  10. done
RAW Paste Data