You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/steps/git-clone.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ step_name:
50
50
|`title`| The free-text display name of the step.| Optional|
51
51
|`description`| A basic, free-text description of the step.| Optional|
52
52
|`stage`| Parent group of this step. See[using stages]({{site.baseurl}}/docs/codefresh-yaml/stages/) for more information.| Optional|
53
-
|`working_directory`| The directory to which the repository is cloned. It can be an explicit path in the container's file system, or a variable that references another step. The default value is {% raw %}`${{main_clone}}`{% endraw %}.| Default|
53
+
|`working_directory`| The directory to which the repository is cloned. It can be an explicit path in the container's file system, or a variable that references another step. The default value is {% raw %}`${{main_clone}}`{% endraw %}, but note that the default will only be used if you name your step`main_clone`. See the example on[working inside the cloned directory]({{site.baseurl}}/docs/yaml-examples/examples/git-checkout/#working-inside-the-cloned-directory) for more information.| Default|
54
54
|`git`| The name of the[git integration]({{site.baseurl}}/docs/integrations/git-providers/) you want to use. If left empty, Codefresh will attempt to use the git provider that was used during account sign-up. Note that this might have unexpected results if you are changing your Git integrations.| Required|
55
55
|`repo`| path of the repository without the domain name in the form of`my_username/my_repo`| Required|
56
56
|`revision`| The revision of the repository you are checking out. It can be a revision hash or a branch name. The default value is`master`.| Default|
@@ -222,7 +222,6 @@ There are 2 ways to do that:
222
222
223
223
-or-
224
224
225
-
{:start="2"}
226
225
2. Add a step with key`main_clone` to your pipeline. This step can be of any type and can do any action. This step will override the default clone implementation. for example: