diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-18 21:58:50 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-18 21:58:50 +0000 |
commit | 4a379b9f46ca4975219c5321b2750272634e03a6 (patch) | |
tree | 0e2c3c773c6478c4bad443b872a717659ac12e22 /test/create-repo.sh | |
parent | 4824be4732a5b58e149dd2983ba560300cce7971 (diff) | |
download | git-deps-4a379b9f46ca4975219c5321b2750272634e03a6.tar.gz |
call test fixture files file-{a,b}
Avoids any potential confusion with numbers inside the files.
Diffstat (limited to 'test/create-repo.sh')
-rwxr-xr-x | test/create-repo.sh | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/test/create-repo.sh b/test/create-repo.sh index ae31a7c..bfaffe2 100755 --- a/test/create-repo.sh +++ b/test/create-repo.sh @@ -19,7 +19,8 @@ git config user.email git-deps-test@fake.address # Start with two independently committed files -cat <<EOF > one +for f in file-{a,b}; do + cat <<EOF > $f one two three @@ -32,34 +33,28 @@ nine ten EOF -git add one -git commit -m 'create file one' -tag one - -for f in two; do - cp one $f git add $f - git commit -m "create file $f" - tag "$f" + git commit -m "create $f" + tag $f done # Now start making changes -sed -i 's/three/three a/' one -git commit -am 'one: change three to three a' -tag one-three-a # depends on one +sed -i 's/three/three a/' file-a +git commit -am 'file-a: change three to three a' +tag file-a-three-a # depends on file-a -sed -i 's/three/three a/' two -git commit -am 'two: change three to three a' -tag two-three-a # depends on two +sed -i 's/three/three a/' file-b +git commit -am 'file-b: change three to three a' +tag file-b-three-a # depends on file-b # Change non-overlapping part of previously changed file -sed -i 's/eight/eight a/' one -git commit -am 'one: change eight to eight a' -tag one-eight-a # depends on one +sed -i 's/eight/eight a/' file-a +git commit -am 'file-a: change eight to eight a' +tag file-a-eight-a # depends on file-a # Change previously changed line -sed -i 's/three a/three b/' one -git commit -am 'one: change three a to three b' -tag one-three-b # depends on one-three-a +sed -i 's/three a/three b/' file-a +git commit -am 'file-a: change three a to three b' +tag file-a-three-b # depends on file-a-three-a |