summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorFlorian Zschocke <2362065+flaix@users.noreply.github.com>2023-10-15 13:30:08 +0200
committerGitHub <noreply@github.com>2023-10-15 13:30:08 +0200
commitc1b2aec79fe6cba69b8af839ce8c33c58bce2bfd (patch)
tree5eb3d2ae6711fee0539716713245d19038bcce44 /src/main
parentd9f496de093b64b2d701ea5d9cc6f7088ef6e4ac (diff)
parent8be99bb2b38331b42677134462267da5e60e0386 (diff)
downloadgitblit-c1b2aec79fe6cba69b8af839ce8c33c58bce2bfd.tar.gz
gitblit-c1b2aec79fe6cba69b8af839ce8c33c58bce2bfd.zip
Merge pull request #1455 from losiki/message-format
Fix single quotes in MessageFormat patterns.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/authority/GitblitAuthority.java2
-rw-r--r--src/main/java/com/gitblit/servlet/GitFilter.java2
-rw-r--r--src/main/java/com/gitblit/utils/JGitUtils.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/gitblit/authority/GitblitAuthority.java b/src/main/java/com/gitblit/authority/GitblitAuthority.java
index 34931bb5..ef8f2142 100644
--- a/src/main/java/com/gitblit/authority/GitblitAuthority.java
+++ b/src/main/java/com/gitblit/authority/GitblitAuthority.java
@@ -281,7 +281,7 @@ public class GitblitAuthority extends JFrame implements X509Log {
this.userService = loadUsers(folder);
System.out.println(Constants.baseFolder$ + " set to " + folder);
if (userService == null) {
- JOptionPane.showMessageDialog(this, MessageFormat.format("Sorry, {0} doesn't look like a Gitblit GO installation.", folder));
+ JOptionPane.showMessageDialog(this, MessageFormat.format("Sorry, {0} doesn''t look like a Gitblit GO installation.", folder));
} else {
// build empty certificate model for all users
Map<String, UserCertificateModel> map = new HashMap<String, UserCertificateModel>();
diff --git a/src/main/java/com/gitblit/servlet/GitFilter.java b/src/main/java/com/gitblit/servlet/GitFilter.java
index 66933cbd..70da8a9c 100644
--- a/src/main/java/com/gitblit/servlet/GitFilter.java
+++ b/src/main/java/com/gitblit/servlet/GitFilter.java
@@ -294,7 +294,7 @@ public class GitFilter extends AccessRestrictionFilter {
// confirm valid characters in repository name
Character c = StringUtils.findInvalidCharacter(repository);
if (c != null) {
- logger.error(MessageFormat.format("Invalid character '{0}' in repository name {1}!", c, repository));
+ logger.error(MessageFormat.format("Invalid character ''{0}'' in repository name {1}!", c, repository));
return null;
}
diff --git a/src/main/java/com/gitblit/utils/JGitUtils.java b/src/main/java/com/gitblit/utils/JGitUtils.java
index e70b4f99..cd74569b 100644
--- a/src/main/java/com/gitblit/utils/JGitUtils.java
+++ b/src/main/java/com/gitblit/utils/JGitUtils.java
@@ -795,7 +795,7 @@ public class JGitUtils {
}
} catch (Throwable t) {
if (throwError) {
- error(t, repository, "{0} can't find {1} in tree {2}", path, tree.name());
+ error(t, repository, "{0} can''t find {1} in tree {2}", path, tree.name());
}
} finally {
rw.dispose();
@@ -837,7 +837,7 @@ public class JGitUtils {
ObjectLoader ldr = repository.open(blob.getId(), Constants.OBJ_BLOB);
content = ldr.getCachedBytes();
} catch (Throwable t) {
- error(t, repository, "{0} can't find blob {1}", objectId);
+ error(t, repository, "{0} can''t find blob {1}", objectId);
} finally {
rw.dispose();
}
@@ -2117,7 +2117,7 @@ public class JGitUtils {
}
}
} catch (Throwable t) {
- error(t, repository, "{0} can't find {1} in commit {2}", path, commit.name());
+ error(t, repository, "{0} can''t find {1} in commit {2}", path, commit.name());
} finally {
rw.dispose();
tw.close();