You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
coregit should have keepGitDir option and perhaps depth. Should it be true by default? #3050
I've found it confusing that when I see demos of doing a git pull of the dagger/dagger repo and a dockerbuild that the docker version command run afterwards doesn't show a short git hash in the version number like it does when I git clone and build dagger locally on my machine.
I expected a git clone type functionality. Not sure if other folks are expecting something else. If the size of the .git directory is a concern, we could use something like git clone --depth=1.
It seems that perhaps the default BuildKit behavior is to not preserve the .git directory (not sure), but I see that this is an option in BuildKit LLB land (depending on things like dockerfile frontends and such I think), and so we should have that option in cloak to keep the .git directory and likely limit the clone depth and other bells and whistles.
changed the title [-]`core` `git` should have `keepGitDir` option. Should it be `true` by default?[/-][+]`core` `git` should have `keepGitDir` option and perhaps `depth`. Should it be `true` by default?[/+]on Aug 22, 2022
Activity
[-]`core` `git` should have `keepGitDir` option. Should it be `true` by default?[/-][+]`core` `git` should have `keepGitDir` option and perhaps `depth`. Should it be `true` by default?[/+]sipsma commentedon Dec 6, 2022
We have support for including the git dir now. We don't have an option for git depth though
vito commentedon Feb 10, 2023
I'm leaning towards keeping the
.gitdir by default at this point. It seems like we've needed it more than half the time we've used the Git API.helderco commentedon Jul 14, 2023
Closing since this is done. If reopening because of making
keepGitDirdefault totrue, please update issue or create new one.