title: Git output "Submodule registered for path" mixed with aliases config
body: <p><em>(Originally asked <a href="https://public-inbox.org/git/CABUeae_N3NFXn-E1+LHORL3RDf5iTCFn=zyuOo3c2Aot2QF7pg@mail.gmail.com/" rel="nofollow noreferrer">on Git mailing list</a> and <a href="https://groups.google.com/d/msg/git-for-windows/XqrfaEQpd1E/mJyXuxO-BAAJ" rel="nofollow noreferrer">on Git For Windows mailing list</a>, so far without any response.)</em></p>
  
  <h2>Problem</h2>
  
  <p>While running <code>git clone --recurse-submodules https://repo</code> command, I noticed a strange output from <code>git</code> command during initialisation of submodules:</p>
  
  <pre><code>Submodule 'Binary/A' (https://repo) registered for path '!f() { ~/AppData/Local/Fork/Fork.exe $PWD; }; fBinary/A'
  Submodule 'Binary/B' (https://repo) registered for path '!sh -c 'git log $1@{1}..$1@{0} $@'Binary/B'
  Submodule 'Binary/C' (https://repo) registered for path 'ls-files -o -i --exclude-standardBinary/C'
  Submodule 'Binary/D' (https://repo) registered for path 'mergetool.TortoiseGitMerge.trustexitcodeBinary/D'
  </code></pre>
  
  <p>The command seems to run well and completes with success though.</p>
  
  <h2>Partial diagnosis</h2>
  
  <p>I managed to identify what is that garbage injected into the printed paths of submodules. It comes from git aliases I have got configured, for example, in <code>~/.gitconfig</code> there is this include:</p>
  
  <pre><code>[include]
  path = ~/alias_misc.gitconfig
  </code></pre>
  
  <p>and in <code>~/alias_misc.gitconfig</code> there is this alias</p>
  
  <pre><code>[alias]
  fapp = "!f() { ~/AppData/Local/Fork/Fork.exe $PWD; }; f"
  </code></pre>
  
  <p>which is inserted into <code>Binary/A</code> path in the <code>git clone</code> output copied above.</p>
  
  <p>(All the files are <a href="https://github.com/mloskot/wsl-config/tree/master/git" rel="nofollow noreferrer">available on GitHub</a>).</p>
  
  <h2>Question</h2>
  
  <p>Could anyone explain why <code>git</code> randomly inserts definitions of aliases in its output?</p>
  
  <p>Is there anything wrong with my Git configuration files?</p>