title: Maven Release-plugin "tag already exists" for nonexistant tag
body: <p>My setup: <code>git</code>-repository on an <code>Atlassian Stash</code>-server and <code>Atlassian Bamboo</code>.
  I'm using <code>Maven 3.1.1</code> with the <code>release-plugin 2.3.2</code>. The plan in <code>Bamboo</code> looks like this:</p>
  
  <ol>
  <li>Check out from <code>git</code>-repository</li>
  <li>perform a <code>clean install</code></li>
  <li>perform <code>release:prepare</code> and <code>release:perform</code> with <code>ignoreSnapshots=true</code> and <code>resume=false</code></li>
  </ol>
  
  <p>Everything up to the last step works fine, but <code>Maven</code> states, that it can't tag the release, because the tag already exists. Here is the log:</p>
  
  <pre><code>build   26-Nov-2013 10:36:37    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project [PROJECT-NAME]: Unable to tag SCM
  build   26-Nov-2013 10:36:37    [ERROR] Provider message:
  build   26-Nov-2013 10:36:37    [ERROR] The git-tag command failed.
  build   26-Nov-2013 10:36:37    [ERROR] Command output:
  build   26-Nov-2013 10:36:37    [ERROR] fatal: tag '[PROJECT-NAME]-6.2.2' already exists
  </code></pre>
  
  <p>Well, obviously the tag already exists, no big deal. However, this is what <code>git tag</code> looks like for my repository: </p>
  
  <pre><code>bash:~/git/repositories/PROJECT-NAME$ git tag
  [PROJECT-NAME]-5.2.5
  [PROJECT-NAME]-5.3.0
  [PROJECT-NAME]-5.3.1
  [PROJECT-NAME]-5.4.0
  [PROJECT-NAME]-5.5.0
  [PROJECT-NAME]-5.5.1
  [PROJECT-NAME]-5.5.2
  [PROJECT-NAME]-5.5.3
  [PROJECT-NAME]-5.5.4
  [PROJECT-NAME]-5.6.0
  [PROJECT-NAME]-5.6.1
  [PROJECT-NAME]-5.6.2
  [PROJECT-NAME]-5.6.3
  [PROJECT-NAME]-5.6.4
  [PROJECT-NAME]-5.6.5
  [PROJECT-NAME]-5.6.6
  [PROJECT-NAME]-6.0.0
  [PROJECT-NAME]-6.0.1
  [PROJECT-NAME]-6.0.2
  [PROJECT-NAME]-6.1.0
  [PROJECT-NAME]-6.1.1
  [PROJECT-NAME]-6.1.2
  [PROJECT-NAME]-6.2.0
  [PROJECT-NAME]-6.2.1
  </code></pre>
  
  <p>The <code>git</code>-repository is cloned via <code>svn2git</code> from an <code>svn</code>-repository. I've tried multiple times reimporting the repository and deleting and re-cloning it on the <code>stash</code>-server. Yet the tag <code>6.2.2</code> seems to exist somewhere in the depths for <code>Maven</code>. What's going on here?</p>
  
  <p>Update: I just tried removing ALL tags from the repository. Same result. Changing the version from <code>6.2.2</code> to <code>6.2.3</code> showed positive results. </p>
  
  <p>Another update: It seems to have something to do with the name of the repository. Creating a new repository with the same name but adding <code>-2</code> at the end helped. </p>