I have a mono-repo with different sub-projects (~/dev/code/the-project/project-*/ and ~/dev/code/the-project/.git/).
I usually open some projects in OpenFox, and it seems it automatically create a Git repo in said project, which messes up my other tools.
To detect if a project has a Git repo, you can run git rev-parse --show-toplevel instead of ls -d .git (or whichever command is used).
I have a mono-repo with different sub-projects (
~/dev/code/the-project/project-*/and~/dev/code/the-project/.git/).I usually open some projects in OpenFox, and it seems it automatically create a Git repo in said project, which messes up my other tools.
To detect if a project has a Git repo, you can run
git rev-parse --show-toplevelinstead ofls -d .git(or whichever command is used).