Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD --keep-git-dir support missing #5916

Open
mnaser opened this issue Jan 17, 2025 · 1 comment
Open

ADD --keep-git-dir support missing #5916

mnaser opened this issue Jan 17, 2025 · 1 comment

Comments

@mnaser
Copy link

mnaser commented Jan 17, 2025

Hi there!

I'm happy to see that the ADD now supports git repositories, however, Docker supports a --keep-git-dir flag which allows you to interact with the repository if you want to fetch tags or anything else after.

Can we look into adding support for that to provide parity?

Thanks,
Mohammed

@danishprakash
Copy link
Contributor

Not sure I understood the issue. Do you want to be able to use --keep-git-dir to not fetch the git directory? That flag doesn't affect fetching tags or other git objects. You should be able to fetch tags and branches with the current implementation btw.

buildah/tests/bud.bats

Lines 7036 to 7037 in 833420e

ADD https://github.com/containers/podman.git#v5.0 /podman-branch
ADD https://github.com/containers/podman.git#v5.0.0 /podman-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants