Skip to content

Commit d946235

Browse files
seanarmstrong87arturcic
authored andcommitted
Added note to explain about fetchDepth restriction
1 parent 569b4c8 commit d946235

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/examples/azure/gitversion/execute/usage-examples.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Find out how to use the **gitversion/execute** task using the examples below.
44

55
> The examples use the latest _0.x_ version of the GitVersion Execute task. It is recommended to use the latest released version in your own pipelines.
66
7+
Note that if the pipeline is setup to use a shallow git fetch mode the GitVersion Execute task will fail. It is required to use fetchDepth of 0 like so:
8+
9+
```yaml
10+
- checkout: self
11+
fetchDepth: 1
12+
```
13+
714
## Inputs
815
916
The Execute GitVersion task accepts the following inputs:

0 commit comments

Comments
 (0)