You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

testError_TruncatedOld.patch 887B

123456789101112131415
  1. diff --git a/org.eclipse.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.eclipse.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
  2. index 45c2f8a..3291bba 100644
  3. --- a/org.eclipse.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
  4. +++ b/org.eclipse.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
  5. @@ -236,9 +236,9 @@ protected boolean getBoolean(final String section, String subsection,
  6. return defaultValue;
  7. n = n.toLowerCase();
  8. - if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equals(n) || "true".equals(n) || "1".equals(n)) {
  9. + if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equalsIgnoreCase(n) || "true".equalsIgnoreCase(n) || "1".equals(n)) {
  10. return true;
  11. + } else if ("no".equalsIgnoreCase(n) || "false".equalsIgnoreCase(n) || "0".equalsIgnoreCase(n)) {
  12. return false;
  13. } else {
  14. throw new IllegalArgumentException("Invalid boolean value: "