Git error - "Fatal: Unsafe Repository"

I’ve been getting this error when trying to enable version control

I’m using Logseq on Windows and Ubuntu on the same system (Dual Boot), with Logseq stored on a separate partition of my drive that’s accessible to both OSes.

I’ve tried a few solutions from this link but none seem to work. The first answer adds that At least on Windows, it appears that all Git repositories on ejectable drives are considered unsafe and changing the ownership does not seem to work. - Could it be that this is the issue here? And if so does anyone know how to resolve it?