Skip to content

Commit 51a128b

Browse files
committed
test: lint errors with vale
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent d1bcdbe commit 51a128b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/build/building/context.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ clone a specific branch, tag, and subdirectory of a repository.
207207

208208
The format of the URL fragment is `#ref:dir`, where:
209209

210-
- `ref` is the name of the branch, tag, or remote reference
210+
- `ref` is the name of the branch, tag, or commit hash
211211
- `dir` is a subdirectory inside the repository
212212

213213
For example, the following command uses the `container` branch,
@@ -231,6 +231,15 @@ contexts:
231231
| `myrepo.git#mytag:myfolder` | `refs/tags/mytag` | `/myfolder` |
232232
| `myrepo.git#mybranch:myfolder` | `refs/heads/mybranch` | `/myfolder` |
233233

234+
When you use a commit hash as the `ref` in the URL fragment, use the full,
235+
40-character string SHA-1 hash of the commit. A short hash, for example a hash
236+
truncated to 7 characters, is not supported.
237+
238+
```text
239+
✅ 05d2d74403d23d99daf70f4eb4fc0ff16cae7f1a
240+
❌ 05d2d74
241+
```
242+
234243
#### Keep `.git` directory
235244

236245
By default, BuildKit doesn't keep the `.git` directory when using Git contexts.

0 commit comments

Comments
 (0)