From 1f8a69bc9e3acb3b30c26a921dd72dc6154dc28e Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 12 Feb 2024 11:10:12 +0100 Subject: [PATCH] docs: clarify when a URL is treated as a git repo Closes: https://github.com/containers/podman/issues/21605 [CI:DOCS] clarify podman build git repo handling Signed-off-by: Giuseppe Scrivano --- docs/source/markdown/podman-build.1.md.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/markdown/podman-build.1.md.in b/docs/source/markdown/podman-build.1.md.in index 32539f76c6..67bafb5bde 100644 --- a/docs/source/markdown/podman-build.1.md.in +++ b/docs/source/markdown/podman-build.1.md.in @@ -35,7 +35,8 @@ When the URL is a Containerfile, the Containerfile is downloaded to a temporary location. When a Git repository is set as the URL, the repository is cloned locally and -then set as the context. +then set as the context. A URL is treated as a Git repository if it +has a `git://` prefix or a `.git` suffix. NOTE: `podman build` uses code sourced from the `Buildah` project to build container images. This `Buildah` code creates `Buildah` containers for the