aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
diff options
context:
space:
mode:
authorMarc Strapetz <marc.strapetz@syntevo.com>2015-10-21 12:03:53 +0200
committerMarc Strapetz <marc.strapetz@syntevo.com>2015-10-21 12:05:03 +0200
commitd29b2b6762a96d8ecd20bfc8855b3f9dfdfcce67 (patch)
treef9b3223dd5ac1b69b4f9bf357343af7ddc204836 /org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
parentce525a0a62acdff11d004d50b395286c4681f7b8 (diff)
downloadjgit-d29b2b6762a96d8ecd20bfc8855b3f9dfdfcce67.tar.gz
jgit-d29b2b6762a96d8ecd20bfc8855b3f9dfdfcce67.zip
Refspec: loosen restrictions on wildcard "*"
Since Git 2.6 wildcard restrictions for refspecs have been loosened: refspecs like "refs/heads/*foo:refs/heads/foo*" are valid now. See Git commit 8d3981ccbed9fc211b4e67105015179d9d2a5692 Change-Id: Icb78afbd282c425173b3a7bc10eadc4015689bb8 Signed-off-by: Marc Strapetz <marc.strapetz@syntevo.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
index 66ffc3abe9..0e803bdaf7 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
@@ -457,10 +457,6 @@ public class RefSpec implements Serializable {
if (i != -1) {
if (s.indexOf('*', i + 1) > i)
return false;
- if (i > 0 && s.charAt(i - 1) != '/')
- return false;
- if (i < s.length() - 1 && s.charAt(i + 1) != '/')
- return false;
}
return true;
}