title: Registering a new package in Julia fails
body: <p>I am trying to register a new Julia package, but <code>Pkg.publish()</code> fails. It says I need to call <code>Pkg.update()</code>. The latter tells me everything is already up-to-date.</p>
  
  <p>What I get in my console:</p>
  
  <pre><code>julia&gt; Pkg.update()
  INFO: Updating METADATA...
  INFO: Updating RDF...
  INFO: Computing changes...
  INFO: No packages to install, update or remove.
  
  julia&gt; Pkg.register("RDF")
  INFO: Registering RDF at git://github.com/joejimbo/RDF.jl.git
  INFO: Committing METADATA for RDF
  
  julia&gt; Pkg.publish()
  ERROR: METADATA is behind origin/metadata-v2 – run Pkg.update() before publishing
   in publish at pkg/entry.jl:259
   in anonymous at pkg/dir.jl:28
   in cd at file.jl:22
   in cd at pkg/dir.jl:28
   in publish at pkg.jl:53
  </code></pre>
  
  <p>How can I resolve this?</p>
  
  <p>Thanks,</p>
  
  <p>Kim</p>