#Does dagger.Git() support local paths?

1 messages · Page 1 of 1 (latest)

bitter vine
#

Currently, based on the environment, I use either ssh or https for fetching git repo.
Which I can easily then do ref.Commit(ctx) to get the commit id.

But for local usage, I use local path, and in order to get the commit id I have to use a container to run a git rev-parse HEAD to get the commit id.
I cant find a way to use dagger.Git() with a local path.

sturdy rivet
#

It's definitely on the radar 🙏