So I am currently working using a Unity project in a specific repository. How can I get the name of this repository I am working in? That is, the name of the folder directly above the .git folder.
The way I have done it is like so:
Directory.GetCurrentDirectory().GetParentDirectory().GetParentDirectory().GetParentDirectory().GetFilename();
However, this feels like not the best way to do it since it's almost like as if I am hard coding?
What other ways can I do this?