title: git commit ignoring email in global config and using hostname instead
body: <p>I have an issue similar to <a href="https://stackoverflow.com/questions/10749211/git-commit-author-information-who-the-heck-is-christian-s">this</a> where my laptop was using <code>me&lt;my_emal&gt;</code> for commits, laptop catastrophically died, got new laptop, reinstalled Wheezy, stuck old drive in new laptop and my commits now use <code>me&lt;local_hostname&gt;</code></p>
  
  <p>My git config has the entries</p>
  
  <pre><code>[user]
  name = me
  email = myemail
  </code></pre>
  
  <p>I have tried the command</p>
  
  <pre><code>print_env
  </code></pre>
  
  <p>but <code>GIT_AUTHOR_NAME</code> and <code>GIT_AUTHOR_EMAIL</code> are not set.</p>
  
  <p>Of the suggested commands</p>
  
  <pre><code>git config --system -l
  git config --global -l
  git config --local -l
  </code></pre>
  
  <p>only <code>--global</code> has <code>user.name</code> and <code>user.email</code> set and it is correct, <code>--system</code> reports <code>/etc/gitconfig</code> does not exist and <code>--local</code> has no entries for <code>user*</code> i.e. no user/email entries in <code>my-repo/.git/config</code> only in <code>~/.gitconfig</code>.</p>
  
  <pre><code> grep -R GIT_AUTHOR_EMAIL / 2&gt;/dev/null
  </code></pre>
  
  <p>returns a bunch of results but does not explicitly set it to <code>hostname</code></p>
  
  <p>As a result this now breaks my building using git-buildpackage as the key to use is <code>me&lt;my_email&gt;</code> not <code>me&lt;hostname&gt;</code>.</p>
  
  <p>I also spotted <a href="https://askubuntu.com/questions/155410/how-do-i-add-create-a-source-changes-file">this</a> on the package building side (which led me to the above post) but that's only for after the commit.</p>
  
  <p>Running out of ideas now.</p>