Last active
August 29, 2015 13:56
-
-
Save prtksxna/9085873 to your computer and use it in GitHub Desktop.
Usage `./murgi.sh mediawiki/extensions/Popups dptypes.pmtpa.wmflabs 113951 2`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPO=$1 | |
HOST=$2 | |
CHANGE=$3 | |
PS=$4 | |
DIR=${CHANGE: -2} | |
ssh -t $HOST bash -c "' | |
cd /vagrant/$REPO | |
sudo git fetch origin | |
sudo git checkout origin/master | |
sudo git fetch https://gerrit.wikimedia.org/r/$1 refs/changes/$DIR/$CHANGE/$PS | |
sudo git checkout FETCH_HEAD | |
'" | |
fortune -s | cowsay | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment