Add reset-fork script to testing

pull/424/merge
Jeffrey Walton 2017-05-28 16:11:28 -04:00
parent 567e4f31b4
commit 81c751314b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 10 additions and 0 deletions

10
TestScripts/reset-fork.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Use this script to reset a fork to Wei Dai's master
# https://stackoverflow.com/questions/9646167/clean-up-a-fork-and-restart-it-from-the-upstream
git remote add upstream https://github.com/weidai11/cryptopp 2>/dev/null
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force