Skip to content

Commit daa38f4

Browse files
Pete Wyckoffgitster
authored andcommitted
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>
1 parent 0f487d3 commit daa38f4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

t/lib-git-p4.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,8 @@ start_p4d() {
7474
fi
7575

7676
# build a client
77-
(
78-
cd "$cli" &&
79-
p4 client -i <<-EOF
80-
Client: client
81-
Description: client
82-
Root: $cli
83-
View: //depot/... //client/...
84-
EOF
85-
)
77+
client_view "//depot/... //client/..." &&
78+
8679
return 0
8780
}
8881

0 commit comments

Comments
 (0)