Split refspecs on the last : not the first
commit3c268c8cc77a3ed3a50b47cf6354330a9416b726
authorShawn O. Pearce <spearce@spearce.org>
Fri, 20 Mar 2009 15:12:12 +0000 (20 08:12 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 20 Mar 2009 21:35:05 +0000 (20 22:35 +0100)
treeff50fc021a7707c8c3f5c82042cbe51f4ea20689
parentddbc872484ee72914d48a30db8011e89cba10e54
Split refspecs on the last : not the first

Recent discussion about a potential ':%branchname' syntax for
remote branches led rise to the question on #git of whether or
not this could be used on the lhs of a push refspec, such as
"+:%master:master".

Testing shows git-core permits this, as it must be splitting the
refspec with strrchr(), splitting along the last : in the string.
Make JGit match the split semantics.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/transport/RefSpecTestCase.java
org.spearce.jgit/src/org/spearce/jgit/transport/RefSpec.java