summaryrefslogtreecommitdiff
path: root/spec/acceptance/files
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-04-02 15:52:51 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-04-02 15:52:51 -0700
commitc1f613c2225b2692ae8a2f6c8213fbf826311d9a (patch)
tree56ceac2d54a525989a16847d17c3c2c6858027b9 /spec/acceptance/files
parent92743c459ec7064c260bbf0686a368182291e99c (diff)
parent1ebe52ef9963391f13b406c843c8f475668f173c (diff)
downloadpuppet-vcsrepo-c1f613c2225b2692ae8a2f6c8213fbf826311d9a.tar.gz
puppet-vcsrepo-c1f613c2225b2692ae8a2f6c8213fbf826311d9a.tar.bz2
Merge pull request #130 from Phil0xF7/add_beaker-rspec_tests
add beaker-rspec support
Diffstat (limited to 'spec/acceptance/files')
-rwxr-xr-xspec/acceptance/files/create_git_repo.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/acceptance/files/create_git_repo.sh b/spec/acceptance/files/create_git_repo.sh
new file mode 100755
index 0000000..03c4f44
--- /dev/null
+++ b/spec/acceptance/files/create_git_repo.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+mkdir testrepo
+cd testrepo
+
+touch file1.txt file2.txt file3.txt
+git init
+echo 'change 1' > file1.txt
+git add file1.txt
+git tag 0.0.1
+git commit -m 'add file1'
+echo 'change 2' > file2.txt
+git add file2.txt
+git tag 0.0.2
+git commit -m 'add file2'
+echo 'change 3' > file3.txt
+git add file3.txt
+git commit -m 'add file3'
+git tag 0.0.3
+
+git checkout -b a_branch
+echo 'change 4' > file4.txt
+git add file4.txt
+git commit -m 'add file4'
+echo 'change 5' > file5.txt
+git add file5.txt
+git commit -m 'add file5'
+echo 'change 6' > file6.txt
+git add file6.txt
+git commit -m 'add file6'
+
+git checkout master
+cd ..
+
+git --git-dir=testrepo/.git config core.bare true
+cp -r testrepo/.git testrepo.git
+rm -rf testrepo