summaryrefslogtreecommitdiff
path: root/TestScripts/reset-fork.sh
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-28 16:11:28 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-28 16:11:28 -0400
commit81c751314b266c0ae3944e6125f05d244915defe (patch)
treeb9a357eb8493e3db90bda8c6818884ddeb577698 /TestScripts/reset-fork.sh
parent567e4f31b447ffee449f296ee93dda13f8c996a4 (diff)
downloadcryptopp-git-81c751314b266c0ae3944e6125f05d244915defe.tar.gz
Add reset-fork script to testing
Diffstat (limited to 'TestScripts/reset-fork.sh')
-rw-r--r--TestScripts/reset-fork.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/TestScripts/reset-fork.sh b/TestScripts/reset-fork.sh
new file mode 100644
index 00000000..ab25b9fe
--- /dev/null
+++ b/TestScripts/reset-fork.sh
@@ -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