1 # This script makes several versions of a small test repository that
2 # can be used for testing the format version upgrade code.
8 export LANG LC_ALL PAGER TZ
12 unset COMMIT_AUTHOR_EMAIL
13 unset COMMIT_AUTHOR_NAME
14 unset GIT_ALTERNATE_OBJECT_DIRECTORIES
16 GIT_AUTHOR_EMAIL
=author@example.com
17 GIT_AUTHOR_NAME
='A U Thor'
18 unset GIT_COMMITTER_DATE
19 GIT_COMMITTER_EMAIL
=committer@example.com
20 GIT_COMMITTER_NAME
='C O Mitter'
23 unset GIT_EXTERNAL_DIFF
25 unset GIT_OBJECT_DIRECTORY
26 unset SHA1_FILE_DIRECTORIES
27 unset SHA1_FILE_DIRECTORY
28 export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
29 export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
31 for ver
in 0.12 0.8; do
32 if [ -e $ver.
tar.gz
]; then continue; fi
34 # Get the required stgit version.
37 git archive
--format=tar --prefix=stgit-
$ver/ v
$ver
40 # Set up a repository.
46 git commit
-m 'Initial commit'
51 PATH
=..
/stgit-
$ver:$PATH
55 echo 'cool branch' > .git
/patches
/master
/description
57 for i
in 0 1 2 3 4; do
58 stg new p
$i -m "Patch $i"
65 # Reduce the number of small files.
70 tar zcf
$ver.
tar.gz
$ver