the current implementation makes it hard to have go-git working if you need to support both scenarios. see https://github.com/go-gitea/gitea/pull/23894 related to #706