git submodule update --init gives error fatal: Needed a single revision Unable to find current revision in submodule path
<p>When i execute <code>git submodule update --init</code> I get error </p>

<blockquote>
  <p>fatal: Needed a single revision Unable to find current revision in submodule path 'plugins/pluginname'. </p>
</blockquote>

<p>Actually I was trying to run a Jenkins Job to deploy it. I added Recursively update submodules as additional behavior in Jenkins. FATAL: Command "git.exe submodule update --init --recursive" returned status code -1: This is occurring only from my local as same command is working for others.</p>