#Alternate git objects path

1 messages · Page 1 of 1 (latest)

mossy shale
#

The repo I'm working with has .git/objects/info/alternates defined with an absolute path.

The dagger engine doesn't seem to respect that and I get a warning like this:
WRN failed to get commit object err="object not found"

Additionally, when I try certain git operations inside my own container running with that git repo they fail.

Is there a way to let dagger engine know about the alternate path git object path or do I need to pass in that Directory to my dagger function?

olive pumice
#

can you explain the second part, you're also getting errors when executing the git tool in your container?

#

assuming the git alternates reference paths on your host system, it's normal that those paths are not available. You'll have to copy or mount those in your container where git is executed

mossy shale
#

Hello @olive pumice , yes it appears the core git implementation doesn't support it based on the warning I see.

Ok, yes the path is on the host and I'm mounting that right now in my container. Everything works fine as long as I do that. I was just wondering if that's the way it should work or if it should try to automatically mount by parsing the git alternate location information.

olive pumice
#

glad you're unblocked!