Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2013-01-27 07:11:07 +0400
committerJunio C Hamano <gitster@pobox.com>2013-01-27 10:00:38 +0400
commitdaa38f4ae0afdc6357c547d2f6bd5270e1e4151a (patch)
treee272b830efe029f20ee1abdf69c58efafee9eaa3 /t/lib-git-p4.sh
parent0f487d308d819cf6c64b866cb2f5c366a13b1639 (diff)
git p4 test: use client_view to build the initial client
Simplify the code a bit by using an existing function. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-git-p4.sh')
-rw-r--r--t/lib-git-p4.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh
index 7061dce7e5..890ee60708 100644
--- a/t/lib-git-p4.sh
+++ b/t/lib-git-p4.sh
@@ -74,15 +74,8 @@ start_p4d() {
fi
# build a client
- (
- cd "$cli" &&
- p4 client -i <<-EOF
- Client: client
- Description: client
- Root: $cli
- View: //depot/... //client/...
- EOF
- )
+ client_view "//depot/... //client/..." &&
+
return 0
}