From 29430da5c93e4f337133bf18b19afd036e902e73 Mon Sep 17 00:00:00 2001 From: Raphael Jolly Date: Thu, 10 Sep 2026 15:05:18 +0200 Subject: [PATCH] Sometimes you want a user agent with spaces in it --- org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java index b23ee97dcb8..c39df56fe05 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UserAgent.java @@ -47,7 +47,7 @@ static String clean(String s) { StringBuilder b = new StringBuilder(s.length()); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); - if (c <= 32 || c >= 127) { + if (c < 32 || c >= 127) { if (b.length() > 0 && b.charAt(b.length() - 1) == '.') continue; c = '.';