summaryrefslogtreecommitdiff
path: root/init-tests-after-clone.sh
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-06-21 08:57:39 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-06-21 09:05:39 +0200
commit3c6e5adab98a2ea4253fefc4f83598947f4993ee (patch)
treed88f90c257ba6267893df4445cafbe445ae3b0f0 /init-tests-after-clone.sh
parentde894298780fd90c199ef9e3959a957a24084b14 (diff)
downloadgitpython-3c6e5adab98a2ea4253fefc4f83598947f4993ee.tar.gz
chore(tests): test-initialization via script
Fixes #478
Diffstat (limited to 'init-tests-after-clone.sh')
-rwxr-xr-xinit-tests-after-clone.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/init-tests-after-clone.sh b/init-tests-after-clone.sh
new file mode 100755
index 00000000..0d445891
--- /dev/null
+++ b/init-tests-after-clone.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -e
+
+if [[ -z "$TRAVIS" ]]; then
+ read -p "This operation will destroy locally modified files. Continue ? [N/y]: " answer
+ if [[ ! $answer =~ [yY] ]]; then
+ exit 2
+ fi
+fi
+
+git tag __testing_point__
+git checkout master || git checkout -b master
+git reset --hard HEAD~1
+git reset --hard HEAD~1
+git reset --hard HEAD~1
+git reset --hard __testing_point__ \ No newline at end of file