Git added the configuration option safe.bareRepository = explicit as a security measure to prevent attacks where a cloned repository contains a bare repository and a Git command is run from within that directory.
This new option isn't the default behavior in Git yet. Git 3.0 will have breaking changes but I don't believe anything has been announced regarding this configuration option in general. However, many organizations default it to explicit for their users in their own Git installations as a security improvement. Unfortunately, this setting being enabled completely breaks dependency resolution for SwiftPM. Within Google, SwiftPM isn't our primary build system, but any of our teams building SDKs that we ship to open-source customers are impacted by this issue.
@Kyle-Ye had created a proof-of-concept implementation a while back but it would need expertise from someone on SwiftPM to review it and shepherd it through.
Is supporting this security feature something that the Build and Packaging Workgroup would be able to prioritize in an upcoming release?