SHARE
TWEET

Untitled

a guest Nov 23rd, 2014 165 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top