[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wikitech-l
Subject:    Re: [Wikitech-l] Moving a GitHub Pull Request to Gerrit Changeset manually
From:       Platonides <Platonides () gmail ! com>
Date:       2013-03-26 10:53:45
Message-ID: kirunl$bd5$1 () ger ! gmane ! org
[Download RAW message or body]

This should work:

WIKIMEDIA_REPOS=/path/where/you/have/your/clones
REPO=$1 # qa/browsertests
PULL=$2 # https://github.com/brainwane/qa-browsertests.git

TEMP=`mktemp --tmpdir -d pull-request.XXXXXXX`
git clone --reference="$WIKIMEDIA_REPOS/$REPO"  "$PULL" "$TEMP"
cd "$TEMP"

if [ ! -f .gitreview ]; then
cat > .gitreview <<EOF
[gerrit]
host=gerrit.wikimedia.org
port=29418
project=$REPO.git
defaultbranch=master
defaultrebase=0
EOF
fi

git-review -R

rm -rf "$TEMP"


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic