From 4ae4bd23439b9fff7425c79167a638d7102a647b Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Tue, 26 Jun 2007 21:29:23 -0400 Subject: [PATCH] Allows '-' to be part of base name in configs This was breaking with git-svn, as it adds an entry: [svn-remote "svn"] blah=blah Signed-off-by: Dave Watson --- org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java index af029161..a5cedfd8 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java @@ -387,14 +387,14 @@ public class RepositoryConfig { } else if (' ' == c || '\t' == c) { // Skipped... } else { - throw new IOException("Bad base entry."); + throw new IOException("Bad base entry. : " + base + "," + c); } } break; - } else if (Character.isLetterOrDigit((char) c) || '.' == c) { + } else if (Character.isLetterOrDigit((char) c) || '.' == c || '-' == c) { base.append((char) c); } else { - throw new IOException("Bad base entry."); + throw new IOException("Bad base entry. : " + base + ", " + c); } } return base.toString(); -- 2.11.4.GIT