#.git folder from GitRepository
1 messages · Page 1 of 1 (latest)
👋 there's a keepGitDir option in the Git operation for this:
https://play.dagger.cloud/playground/2rSL_zrvKFL
Welcome to Dagger API Playground
Sorry to necrobump, but this seems to be the only post about this issue around and the playground is gone now and this option isn't documented in the SDK docs. To help others out the (python) code that works for me is:
url = "https://github.com/dagger/dagger"
ref = "v0.11.9"
destination_folder = "/src"
container = await container.with_mounted_directory(
destination_folder, dag.git(url, keep_git_dir=True).ref(ref).tree()
)
thx for bumping. Also checking what's happening with the playground since it should be working
above link should work now @fair crane .Thx for reporting again