title: What's the status of my git submodule, and how can I clean it up?
body: <p>Being a relative submodules noob, I wanted to update my submodule with from its origin, and did:</p>
  
  <pre><code>git pull
  </code></pre>
  
  <p>This resulted in:</p>
  
  <pre><code>remote: Counting objects: 111, done.
  remote: Compressing objects: 100% (3/3), done.
  remote: Total 57 (delta 54), reused 57 (delta 54)
  Unpacking objects: 100% (57/57), done.
  From github.com:eteanga/smarty
     8e9a011..818ab3e  master     -&gt; origin/master
  You are not currently on a branch, so I cannot use any
  'branch.&lt;branchname&gt;.merge' in your configuration file.
  Please specify which remote branch you want to use on the command
  line and try again (e.g. 'git pull &lt;repository&gt; &lt;refspec&gt;').
  See git-pull(1) for details.
  </code></pre>
  
  <p>Trying to fix:</p>
  
  <pre><code>git pull origin master
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>From github.com:eteanga/smarty
   * branch            master     -&gt; FETCH_HEAD
  Updating 8e9a011..818ab3e
  Fast-forward
  [snip]
  </code></pre>
  
  <p>Now it seems that I did get the updated code, <strong>but</strong> I'm not currently working on any branch.</p>
  
  <p>What should I have done to update my submodule correctly, and what should I do to fix this current state?</p>