I'd like to configure the file protocol for use with one of my repository, as it resides next 2 other repos that I'll use as dependency in the form of git submodules. But due to security reasons, I don't want random repo I pull elsewhere to go rogue and clone files from my local filesystem when I initialize their submodules.
I thought a repository-specific configuration would work for me, but I don't want this config to be pushed to public git servers.
The similar question box led me to this when I'm drafting this question, but I wonder if there's better solution.
According to git-config#ENVIRONMENT, you can override your "secure" default on command-by-command basis by setting environment variables, like this: