Skip to content

Commit 182edef

Browse files
Pete Wyckoffgitster
authored andcommitted
git p4 doc: fix branch detection example
Make sure that the example on how to use git-p4.branchList works if typed directly. In particular, it does not make sense to set a config variable until the git repository has been initialized. Reported-by: Olivier Delalleau <[email protected]> Signed-off-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c595956 commit 182edef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/git-p4.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,10 @@ the path elements in the p4 repository. The example above relied on the
393393
presence of the p4 branch. Without p4 branches, the same result will
394394
occur with:
395395
----
396+
git init depot
397+
cd depot
396398
git config git-p4.branchList main:branch1
397-
git p4 clone --detect-branches //depot@all
399+
git p4 clone --detect-branches //depot@all .
398400
----
399401

400402

0 commit comments

Comments
 (0)