gitinfo searches workingDir by default and that's not what we want, if
we specify content directory during build, we want .git information from
that directory also.
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
func mapLocalRepo(cfg gitInfoConfig) (*gitmap.GitRepo, error) {
opts := gitmap.Options{
- Repository: cfg.Deps.Conf.BaseConfig().WorkingDir,
+ Repository: cfg.Deps.Conf.DirsBase().ContentDir,
GetGitCommandFunc: func(stdout, stderr io.Writer, args ...string) (gitmap.Runner, error) {
var argsv []any
for _, arg := range args {