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 <shish@keba.be> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pete Wyckoff committed
Jan 14, 2013 at 19:47 UTC
182edef5b473bc13c57a158e3282c0aab4da01d6
1 file changed
+3
-1
Documentation/git-p4.txt
+3
-1
@@ -393,8 +393,10 @@ the path elements in the p4 repository. The example above relied on the
393
presence of the p4 branch. Without p4 branches, the same result will
394
occur with:
395
----
396
+git init depot
397
+cd depot
398
git config git-p4.branchList main:branch1
397
-git p4 clone --detect-branches //depot@all
399
+git p4 clone --detect-branches //depot@all .
400
----
401
402