diff options
Diffstat (limited to 'test/create_test_repo.sh')
-rw-r--r-- | test/create_test_repo.sh | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/test/create_test_repo.sh b/test/create_test_repo.sh index f56d9cb..7eedefa 100644 --- a/test/create_test_repo.sh +++ b/test/create_test_repo.sh @@ -1,47 +1,5 @@ #!/bin/sh -mkdir -p test/test_repo +cd test -cd test/test_repo - -__git () { git "$@" 2>/dev/null ; } -_git () { __git "$@" > /dev/null ; } - -_git init -q - -echo -n "FOOBAR" > testblob - -_git add testblob - -GIT_AUTHOR_NAME="Gall Test Suite Author" -GIT_AUTHOR_EMAIL="gall-author@gitano.org.uk" -GIT_AUTHOR_DATE="1347114766 +0000" -GIT_COMMITTER_NAME="Gall Test Suite Committer" -GIT_COMMITTER_EMAIL="gall-committer@gitano.org.uk" -GIT_COMMITTER_DATE="1347114766 +0100" - -export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE -export GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE - -_git commit -m "Initial" - -echo -n "BAZMETA" > testblob - -_git add testblob - -_git commit -m "Second" - -_git checkout -b branchy 'HEAD^' - -echo -n "NEW" > secondblob - -_git add secondblob -_git commit -m "branchy" - -_git checkout master - -_git merge branchy - -_git tag -a -m "Annotated Tag. Wahey" v1.0 - -(cd .git; tar xf ../../signed.tar) +tar xf test_repo.tar |