title: Make git pull --recurse-submodules update submodule to latest commit on submodule branch
body: <p>I want <code>git pull --recurse-submodules</code> to update all submodules to the latest commit on their branch.</p>
  <p><code>.gitmodules</code>:</p>
  <pre><code>[submodule &quot;roles-shared&quot;]
      path = roles-shared
      url = ../../project/roles-shared.git
      branch=master
  
  </code></pre>
  <p>I update <code>master</code> branch in roles-shared repository, adding 1 new commit.</p>
  <p>I do <code>git pull --recurse-submodules</code> in main repository:</p>
  <pre><code>Fetching submodule roles-shared
  From gitlab:project/roles-shared
     83de1f4..f0688dd  master     -&gt; origin/master
  Already up to date.
  
  </code></pre>
  <p>Submodule got all new commits, but it not updated, it is 1 commit behind master:</p>
  <pre><code># submodule foreach git status
  
  Entering 'roles-shared'
  On branch master
  Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
    (use &quot;git pull&quot; to update your local branch)
  </code></pre>
  <p>Is there any way to make <code>git pull</code> automatically update submodules to their latest commits?</p>