diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-18 15:27:43 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-18 16:21:54 -0800 |
commit | 74d20040cafdced657efbf49795183d209a3a07b (patch) | |
tree | 533dce0336c62e5067983a050cc07e1904e8e6b3 /t/t5510-fetch.sh | |
parent | 8336afa563fbeff35e531396273065161181f04c (diff) | |
download | git-74d20040cafdced657efbf49795183d209a3a07b.tar.gz |
fix testsuite: make sure they use templates freshly built from the source
The initial t/trash repository for testing was created properly
but over time we gained many tests that create secondary test
repositories with init-db or clone and they were not careful
enough.
This fixes it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-x | t/t5510-fetch.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index a11ab0ad41..e2e8c894f9 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -15,12 +15,12 @@ test_expect_success setup ' git commit -a -m original' test_expect_success "clone and setup child repos" ' - git clone . one && + git_clone . one && cd one && echo >file updated by one && git commit -a -m "updated by one" && cd .. && - git clone . two && + git_clone . two && cd two && git repo-config branch.master.remote one && { @@ -28,7 +28,7 @@ test_expect_success "clone and setup child repos" ' echo "Pull: refs/heads/master:refs/heads/one" } >.git/remotes/one cd .. && - git clone . three && + git_clone . three && cd three && git repo-config branch.master.remote two && git repo-config branch.master.merge refs/heads/one && @@ -74,7 +74,7 @@ test_expect_success 'fetch following tags' ' mkdir four && cd four && - git init-db && + git_init_db && git fetch .. :track && git show-ref --verify refs/tags/anno && |