how to know if repository is a submodule
<p>Pretende that i have repo A, and it's submodules A.1 A.2.</p>

<p>If I run</p>

<pre><code>git clone --recursive https://github.com/A/A.git .
</code></pre>

<p>It will clone the main repository and it's submodules. </p>

<p>But if i run:</p>

<pre><code>git clone --recursive https://github.com/A/A1.git .
</code></pre>

<p>I can't run anything that can handle the main repo and other submodules?</p>